Crates.io | wtest |
lib.rs | wtest |
version | 0.1.2 |
source | src |
created_at | 2021-11-29 06:54:24.712023 |
updated_at | 2022-06-18 07:30:08.758304 |
description | Tools for writing and running tests. |
homepage | https://github.com/Wandalen/wTools/tree/master/module/rust/wtest |
repository | https://github.com/Wandalen/wTools/tree/master/module/rust/wtest |
max_upload_size | |
id | 489115 |
size | 847,661 |
Tools for writing and running tests.
use wtest::*;
//
tests_impls!
{
fn pass1()
{
assert_eq!( true, true );
}
//
fn pass2()
{
assert_eq!( 1, 1 );
}
}
//
tests_index!
{
pass1,
pass2,
}
cargo add wtest --dev
git clone https://github.com/Wandalen/wTools
cd wTools
cd sample/rust/test_trivial
cargo run