Skip to content

unit test macros #3400

Closed
Closed
@jesse99

Description

@jesse99

Using asserts within unit tests is entirely unsatisfactory: when they fail you can't see why without editing the code or breaking out a debugger, and it's difficult to be intelligent about pointing out where the problem is (e.g. maybe the second element of a vector doesn't match the expected value).

Seems like it would be possible to use the new whiz bang macro system to address this. Lots of unit test frameworks out there, but it's probably best to look at one for a statically typed language like Nunit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-testsuiteArea: The testsuite used to check the correctness of rustcC-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions