Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
assert_eq in snapbox - Rust
[go: Go Back, main page]

pub fn assert_eq(expected: impl Into<Data>, actual: impl Into<Data>)
Expand description

Check if a value is the same as an expected value

When the content is text, newlines are normalized.

let output = "something";
let expected = "something";
snapbox::assert_matches(expected, output);