describe

Crates.iodescribe
lib.rsdescribe
version0.1.0
sourcesrc
created_at2023-01-11 07:47:15.499931
updated_at2023-01-11 07:47:15.499931
descriptionA testing toolkit for writing legible, ergonomic unit tests.
homepage
repositoryhttps://github.com/JackoCoolio/describe
max_upload_size
id756210
size9,858
Jackson Wambolt (JackoCoolio)

documentation

README

describe

Describe is a testing toolkit for writing legible, ergonomic unit tests.

Getting started

Describe exposes one function for creating a new test case, assert_that.

use describe::assert_that;

// An example function to test.
fn get_answer_to_life() -> u8 {
    42
}

...

// Assert that the answer to life is 42.
assert_that(&get_answer_to_life()).is(&42);
Commit count: 4

cargo fmt