[go: up one dir, main page]

insta 1.10.0

A snapshot testing library for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[test]
fn test_crlf() {
    insta::assert_snapshot!("foo\r\nbar\r\nbaz");
}

#[test]
fn test_trailing_crlf() {
    insta::assert_snapshot!("foo\r\nbar\r\nbaz\r\n");
}

#[test]
fn test_trailing_crlf_inline() {
    insta::assert_snapshot!("foo\r\nbar\r\nbaz\r\n", @r###"
    foo
    bar
    baz
    "###);
}