[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
#[test]
fn test_basic_suffixes() {
    for value in vec![1, 2, 3] {
        insta::with_settings!({snapshot_suffix => value.to_string()}, {
            insta::assert_json_snapshot!(&value);
        });
    }
}