Rust crate for defining a macro that automatically specializes generic tests on provided types. This is useful
when we want to write identical tests with different underlying types. This crate provide the syntax #[test_with(Type1, Type2)]
which will instantiate 2 tests: one on Type1
, the other on Type2
. Those types could be any path to any generic type like
module::something::Type<Gen>
.
An example is better than words: ```rust
fn testvec
This code will generate 3 tests function:
specializedtestvecu32,
specializedtestvecu64, and
specializedtestvecchar`.
This support adding the attribute #[should_panic]
to the definition.
```rust
fn testvecfail