Crate test_macro

Source
Expand description

This is a macro for writing Rust test code in an easy way.

Macrosยง

test_assert
Test that the given argument is expected to be true.
test_assert_eq
Generate a test code that internally uses assert_eq!.
test_assert_ne
Generate a test code that internally uses assert_ne!.
test_should_panic
Test to see if it panics as expected.