Crate expect_test_bytes

Source
Expand description

Copy of expect-test, a minimalistic snapshot testing library, for bytes and binary data.

§Example

let actual = b"example\n";

expect_test_bytes::expect_file!["test_data/example"].assert_eq(actual);

Macros§

expect
Creates an instance of Expect from an expression returning bytes:
expect_file
Creates an instance of ExpectFile from a relative or absolute path:

Structs§

Expect
Bytes.
ExpectFile
Self-updating file.
Position
Position of original expect! in the source file.