#fundamental #general-purpose #testing

no-std dev wtest_basic

Tools for writing tests. The most basic things.

16 releases

0.1.14 Jul 17, 2022
0.1.12 Jul 15, 2022
0.1.10 Jun 28, 2022
0.1.4 May 9, 2022
0.0.3 Nov 29, 2021

#35 in #fundamental

Download history 104/week @ 2024-01-11 69/week @ 2024-01-18 46/week @ 2024-01-25 16/week @ 2024-02-01 58/week @ 2024-02-08 95/week @ 2024-02-15 86/week @ 2024-02-22 99/week @ 2024-02-29 112/week @ 2024-03-07 71/week @ 2024-03-14 98/week @ 2024-03-21 139/week @ 2024-03-28 88/week @ 2024-04-04 86/week @ 2024-04-11 96/week @ 2024-04-18 74/week @ 2024-04-25

372 downloads per month
Used in 28 crates (2 directly)

MIT license

1MB
28K SLoC

Module :: wtest_basic

experimental rust-status docs.rs Open in Gitpod discord

Tools for writing and running tests. The most basic things.

Sample

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

cargo add wtest_basic --dev

Try out from the repository

git clone https://github.com/Wandalen/wTools
cd wTools
cd sample/rust/test_basic_trivial
cargo run

Dependencies

~4–12MB
~156K SLoC