Skip to content

When assertion crashes, display description #145

Open
@cgay

Description

@cgay
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));
    ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureRequires new functionality or documentationoutput

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions