| Crates.io | describe |
| lib.rs | describe |
| version | 0.1.0 |
| created_at | 2023-01-11 07:47:15.499931+00 |
| updated_at | 2023-01-11 07:47:15.499931+00 |
| description | A testing toolkit for writing legible, ergonomic unit tests. |
| homepage | |
| repository | https://github.com/JackoCoolio/describe |
| max_upload_size | |
| id | 756210 |
| size | 9,858 |
Describe is a testing toolkit for writing legible, ergonomic unit tests.
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);