#unit-testing #matcher #expect #test-cases

dev expectest

Crate provides matchers and matcher functions for unit testing

29 releases

0.12.0 Oct 19, 2019
0.11.0 Nov 12, 2018
0.10.0 May 21, 2018
0.9.2 Jan 21, 2018
0.2.2 Jul 16, 2015

#267 in Testing

Download history 860/week @ 2024-07-21 1272/week @ 2024-07-28 931/week @ 2024-08-04 1220/week @ 2024-08-11 1175/week @ 2024-08-18 1213/week @ 2024-08-25 1174/week @ 2024-09-01 557/week @ 2024-09-08 530/week @ 2024-09-15 772/week @ 2024-09-22 510/week @ 2024-09-29 679/week @ 2024-10-06 850/week @ 2024-10-13 909/week @ 2024-10-20 877/week @ 2024-10-27 779/week @ 2024-11-03

3,447 downloads per month
Used in 31 crates (30 directly)

MIT/Apache

37KB
896 lines

expectest

Docs | Examples | Changelog | Crates.io

This project is inspired by Nimble for Swift. It provides matchers and matcher functions to express expectations in tests for common cases, such as: Equality, Order, Option, Result, etc. The crate also provides instruments to implement custom matchers for your project's domain.

Alternative crates

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~150KB