describe 0.1.0

A testing toolkit for writing legible, ergonomic unit tests.
Documentation
  • Coverage
  • 86.67%
    13 out of 15 items documented13 out of 14 items with examples
  • Size
  • Source code size: 9.54 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.66 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • JackoCoolio/describe
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • JackoCoolio

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);