Skip to content

codeframe in assertion failures #37

@boujeepossum

Description

@boujeepossum

we have line! and column! macros. we can technically take out a pice of code with some context around it where assertion failed and add it to the error message
e.g.

Assertion Failure!

43 | fn do something() {
44 |   let stuff = 1
45 |   assert_equal!(stuff, 2);
46 |  }

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