| Crates.io | test_tools |
| lib.rs | test_tools |
| version | 0.16.0 |
| created_at | 2022-05-07 08:54:54.023349+00 |
| updated_at | 2025-06-21 15:18:46.790746+00 |
| description | Tools for writing and running tests. |
| homepage | https://github.com/Wandalen/wTools/tree/master/module/core/test_tools |
| repository | https://github.com/Wandalen/wTools/tree/master/module/core/test_tools |
| max_upload_size | |
| id | 582023 |
| size | 61,266 |
Tools for writing and running tests.
use test_tools::*;
#[ cfg( feature = "enabled" ) ]
#[ cfg( not( feature = "no_std" ) ) ]
tests_impls!
{
fn pass1()
{
assert_eq!( true, true );
}
//
fn pass2()
{
assert_eq!( 1, 1 );
}
}
//
#[ cfg( feature = "enabled" ) ]
#[ cfg( not( feature = "no_std" ) ) ]
tests_index!
{
pass1,
pass2,
}
cargo add test_tools --dev
git clone https://github.com/Wandalen/wTools
cd wTools
cd examples/test_trivial
cargo run