Skip to content

robot-simulator: should represent positions as array or object, not string #722

Closed
@petertseng

Description

@petertseng

Currently, positions are represented as strings like "(11, 5)" in the canonical data for robot-simulator.

For languages where (11, 5) is valid syntax, this seems fine - the test generator will simply be able to interpolate this string wherever it is necessary.

For those languages where it is not valid syntax, it seems like an unusual burden to force test generators for that language to parse the x and y coordinate from the string "(11, 5)".

Consider changing this to an array containing two integers such as [11, 5] or an object with explicit keys such as {"x": 11, "y": 5}.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions