Skip to content

Allow "" as specification of an empty line for stdin #598

@pdawyndt

Description

@pdawyndt

TESTed guarantees POSIX-standard complience, by always making sure each line (including the last line) ends with a newline. If a trailing newline isn't specified in the test suite, TESTed automatically appends one (to avoid test suites that are clutterd with trailing newlines).

However, the empty string "" is treated differently; If we specify stdin: "", this is treated as "no lines on stdin" (which is also what we get is the stdin attribute is missing), where it should better be interpreted as "\n" to follow what TESTed does with all other strings. Now, the only way to specify an "empty line" as input (and probably also output) is by specifying "\n".

See: https://github.com/orgs/dodona-edu/discussions/140

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions