wtest

Crates.iowtest
lib.rswtest
version0.1.2
sourcesrc
created_at2021-11-29 06:54:24.712023
updated_at2022-06-18 07:30:08.758304
descriptionTools for writing and running tests.
homepagehttps://github.com/Wandalen/wTools/tree/master/module/rust/wtest
repositoryhttps://github.com/Wandalen/wTools/tree/master/module/rust/wtest
max_upload_size
id489115
size847,661
Wandalen (Wandalen)

documentation

https://docs.rs/wtest

README

Module :: wtest

experimental rust-status docs.rs Open in Gitpod discord

Tools for writing and running tests.

Sample

use wtest::*;

//

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 --dev

Try out from the repository

git clone https://github.com/Wandalen/wTools
cd wTools
cd sample/rust/test_trivial
cargo run
Commit count: 0

cargo fmt