#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

#292 in Testing

Download history 1109/week @ 2024-06-20 1000/week @ 2024-06-27 1235/week @ 2024-07-04 1622/week @ 2024-07-11 950/week @ 2024-07-18 1098/week @ 2024-07-25 1099/week @ 2024-08-01 1267/week @ 2024-08-08 1169/week @ 2024-08-15 1172/week @ 2024-08-22 1092/week @ 2024-08-29 780/week @ 2024-09-05 590/week @ 2024-09-12 686/week @ 2024-09-19 603/week @ 2024-09-26 422/week @ 2024-10-03

2,381 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