#testing #assert

assert-str

Macros for asserting multiline strings

1 unstable release

0.1.0 Jul 14, 2020

#437 in Testing

Download history 320/week @ 2023-01-21 536/week @ 2023-01-28 583/week @ 2023-02-04 433/week @ 2023-02-11 310/week @ 2023-02-18 397/week @ 2023-02-25 339/week @ 2023-03-04 114/week @ 2023-03-11 144/week @ 2023-03-18 355/week @ 2023-03-25 134/week @ 2023-04-01 228/week @ 2023-04-08 297/week @ 2023-04-15 329/week @ 2023-04-22 232/week @ 2023-04-29 146/week @ 2023-05-06

1,029 downloads per month
Used in 6 crates

Apache-2.0/MIT

19KB
364 lines

assert-str

build status codecov crates.io

Macros for asserting multiline strings


lib.rs:

Macros for asserting of multiline strings String and &str. The API is very similar to the API provided by the stdlib's own assert_eq! or assert_ne!. Left and right expression could be different types.

Examples

Some examples are provided in the docs for each individual macro.

No runtime deps