cfrancia / spectral

Fluent test assertions for Rust
Apache License 2.0
160 stars 13 forks source link

Invert assert #16

Open Riduidel opened 6 years ago

Riduidel commented 6 years ago

As a developer, I sometimes want to have inverted asserts. Typically, I would like to have a assert_that!(...).not().starts_with(...) to make sure that my string does not starts with a prefix.

Riduidel commented 6 years ago

Maybe it already exists, but I've not found it in the docs (maybe I searched poorly). If it already exists, you should for sure close that ticket ...