<!-- {{# generate.module_header{} #}} -->
# Module :: wtest_basic
[](https://github.com/emersion/stability-badges#experimental) [](https://github.com/Wandalen/wTools/actions/workflows/wtest_basic.yml) [](https://docs.rs/wtest_basic) [](https://gitpod.io/#RUN_PATH=.,SAMPLE_FILE=sample%2Frust%2Fwtest_basic_trivial_sample%2Fsrc%2Fmain.rs,RUN_POSTFIX=--example%20wtest_basic_trivial_sample/https://github.com/Wandalen/wTools) [](https://discord.gg/m3YfbXpUUY)
Tools for writing and running tests. The most basic things.
### Sample
<!-- {{# generate.module_sample{} #}} -->
```rust
use wtest_basic::*;
//
tests_impls!
{
fn pass1()
{
assert_eq!( true, true );
}
//
fn pass2()
{
assert_eq!( 1, 1 );
}
}
//
tests_index!
{
pass1,
pass2,
}
```
### To add to your project
```sh
cargo add wtest_basic --dev
```
### Try out from the repository
```sh
git clone https://github.com/Wandalen/wTools
cd wTools
cd sample/rust/test_basic_trivial
cargo run
```