Skip to content

Research using lenient_parse to parse text values returned after Python processing #66

@JosephTLyons

Description

@JosephTLyons

This might be sketchy, as there isn't a perfect amount of certainty that leninet_parse can handle the string-forms of values python has already parsed into a number, and the converted to a string, but I think they will always be in a safe form. This would let us remove the expected_python_output field of all valid tests, as we'd parse the string to an Int or Float that we'd compare against our expected_program_output.

The sketchy bit would be doing all the work, having all the tests pass, and then having one case in the future where Python returns a string that lenient parse fails to parse back into a number.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions