Skip to content

basilisp.test/are suppresses line numbers on test failures #635

Open
@chrisrink10

Description

@chrisrink10

basilisp.test/is fetches line numbers from the (is ...) form during macroexpansion to report line numbers of failing tests. It seems that are-based tests lose reader position when they're first read and therefore we end up getting line number outputs like this:

FAIL in (hierarchy-test) (test_core_fns.lpy:None)
     derived with keywords :: underive :: ancestors :: Test failure: (= nil (ancestors h :tests.basilisp.test-core-fns/isosceles))

    expected: nil
      actual: #{:tests.basilisp.test-core-fns/polygon}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    To do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions