wtest_basic

Crates.iowtest_basic
lib.rswtest_basic
version0.1.14
sourcesrc
created_at2021-11-29 20:54:19.054078
updated_at2022-07-17 13:12:16.20156
descriptionTools for writing tests. The most basic things.
homepagehttps://github.com/Wandalen/wTools/tree/master/module/rust/wtest_basic
repositoryhttps://github.com/Wandalen/wTools/tree/master/module/rust/wtest_basic
max_upload_size
id489487
size980,750
Wandalen (Wandalen)

documentation

https://docs.rs/wtest_basic

README

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
Commit count: 0

cargo fmt