Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When assertion crashes, display description #145

Open
cgay opened this issue Jan 31, 2021 · 1 comment
Open

When assertion crashes, display description #145

cgay opened this issue Jan 31, 2021 · 1 comment
Labels

Comments

@cgay
Copy link
Member

cgay commented Jan 31, 2021

Running test test-<parameter-option>: CRASHED in 0.000637s and 56KiB
    Unexpected token: "="

test-<parameter-option> crashed [Unexpected token: "="]

The assertion that caused that crash has a description, and it should be displayed in the result:

  for (argv in list(vector("--airport", "BOS"),
                    vector("--airport=BOS"),
                    vector("--airport", "=", "BOS"),
                    vector("-aBOS"),
                    vector("-a=BOS"),
                    vector("-as", "=", "BOS")))
    let parser = parse(argv);
    assert-equal("BOS", get-option-value(parser, "airport"),
                 format-to-string("argv = %=", argv));
    ...
@cgay cgay added the output label Jan 31, 2021
@cgay
Copy link
Member Author

cgay commented Feb 8, 2021

For the record, the failing case was the last one: "-as" was a typo for "-a"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant