Skip to content

Commit

Permalink
Align tests to rust 1.35.0 (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
max-sixty authored and mitsuhiko committed Jul 15, 2019
1 parent 8a8e3ee commit d5d7f85
Show file tree
Hide file tree
Showing 11 changed files with 94 additions and 92 deletions.
6 changes: 3 additions & 3 deletions tests/snapshots/test_basic__debug_vector.snap
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
created: "2019-03-03T12:32:23.110499Z"
creator: insta@0.6.3
created: "2019-05-29T04:21:15.246465Z"
creator: insta@0.8.1
source: tests/test_basic.rs
expression: "vec![1 , 2 , 3]"
---
[
1,
2,
3
3,
]
6 changes: 3 additions & 3 deletions tests/snapshots/test_basic__unnamed_debug_vector-2.snap
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
created: "2019-03-05T09:03:05.339291Z"
creator: insta@0.6.3
created: "2019-05-29T04:22:50.837055Z"
creator: insta@0.8.1
source: tests/test_basic.rs
expression: "vec![1 , 2 , 3 , 4]"
---
[
1,
2,
3,
4
4,
]
6 changes: 3 additions & 3 deletions tests/snapshots/test_basic__unnamed_debug_vector-3.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
created: "2019-03-05T09:03:05.376826Z"
creator: insta@0.6.3
created: "2019-05-29T04:23:34.575648Z"
creator: insta@0.8.1
source: tests/test_basic.rs
expression: "vec![1 , 2 , 3 , 4 , 5]"
---
Expand All @@ -9,5 +9,5 @@ expression: "vec![1 , 2 , 3 , 4 , 5]"
2,
3,
4,
5
5,
]
6 changes: 3 additions & 3 deletions tests/snapshots/test_basic__unnamed_debug_vector.snap
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
created: "2019-03-05T09:03:05.274480Z"
creator: insta@0.6.3
created: "2019-05-29T04:21:15.246794Z"
creator: insta@0.8.1
source: tests/test_basic.rs
expression: "vec![1 , 2 , 3]"
---
[
1,
2,
3
3,
]
22 changes: 11 additions & 11 deletions tests/snapshots/test_redaction__foo_bar.snap
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
Created: 2019-01-20T22:01:30.388778+00:00
Creator: insta@0.2.2
Expression: Selector::parse(".foo.bar").unwrap()
Line: 26
Source: tests/test_redaction.rs

---
created: "2019-05-29T14:16:16.625625Z"
creator: insta@0.8.1
source: tests/test_redaction.rs
expression: "Selector::parse(\".foo.bar\").unwrap()"
---
Selector {
selectors: [
[
Key(
"foo"
"foo",
),
Key(
"bar"
)
]
]
"bar",
),
],
],
}
22 changes: 11 additions & 11 deletions tests/snapshots/test_redaction__foo_bar_alt.snap
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
Created: 2019-01-20T22:01:30.389866+00:00
Creator: insta@0.2.2
Expression: Selector::parse(".foo[\"bar\"]").unwrap()
Line: 27
Source: tests/test_redaction.rs

---
created: "2019-05-29T14:53:37.492888Z"
creator: insta@0.8.1
source: tests/test_redaction.rs
expression: "Selector::parse(\".foo[\\\"bar\\\"]\").unwrap()"
---
Selector {
selectors: [
[
Key(
"foo"
"foo",
),
Key(
"bar"
)
]
]
"bar",
),
],
],
}
24 changes: 12 additions & 12 deletions tests/snapshots/test_redaction__foo_bar_full_range.snap
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
Created: 2019-01-20T22:01:30.390816+00:00
Creator: insta@0.2.2
Expression: Selector::parse(".foo.bar[]").unwrap()
Line: 28
Source: tests/test_redaction.rs

---
created: "2019-05-29T15:01:31.190888Z"
creator: insta@0.8.1
source: tests/test_redaction.rs
expression: "Selector::parse(\".foo.bar[]\").unwrap()"
---
Selector {
selectors: [
[
Key(
"foo"
"foo",
),
Key(
"bar"
"bar",
),
Range(
None,
None
)
]
]
None,
),
],
],
}
28 changes: 14 additions & 14 deletions tests/snapshots/test_redaction__foo_bar_range.snap
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
Created: 2019-01-20T22:01:30.393618+00:00
Creator: insta@0.2.2
Expression: Selector::parse(".foo.bar[10:20]").unwrap()
Line: 31
Source: tests/test_redaction.rs

---
created: "2019-05-29T15:02:21.911637Z"
creator: insta@0.8.1
source: tests/test_redaction.rs
expression: "Selector::parse(\".foo.bar[10:20]\").unwrap()"
---
Selector {
selectors: [
[
Key(
"foo"
"foo",
),
Key(
"bar"
"bar",
),
Range(
Some(
10
10,
),
Some(
20
)
)
]
]
20,
),
),
],
],
}
26 changes: 13 additions & 13 deletions tests/snapshots/test_redaction__foo_bar_range_from.snap
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
Created: 2019-01-20T22:01:30.392698+00:00
Creator: insta@0.2.2
Expression: Selector::parse(".foo.bar[10:]").unwrap()
Line: 30
Source: tests/test_redaction.rs

---
created: "2019-05-29T15:01:53.352063Z"
creator: insta@0.8.1
source: tests/test_redaction.rs
expression: "Selector::parse(\".foo.bar[10:]\").unwrap()"
---
Selector {
selectors: [
[
Key(
"foo"
"foo",
),
Key(
"bar"
"bar",
),
Range(
Some(
10
10,
),
None
)
]
]
None,
),
],
],
}
26 changes: 13 additions & 13 deletions tests/snapshots/test_redaction__foo_bar_range_to.snap
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
Created: 2019-01-20T22:01:30.391766+00:00
Creator: insta@0.2.2
Expression: Selector::parse(".foo.bar[:10]").unwrap()
Line: 29
Source: tests/test_redaction.rs

---
created: "2019-05-29T15:01:42.070559Z"
creator: insta@0.8.1
source: tests/test_redaction.rs
expression: "Selector::parse(\".foo.bar[:10]\").unwrap()"
---
Selector {
selectors: [
[
Key(
"foo"
"foo",
),
Key(
"bar"
"bar",
),
Range(
None,
Some(
10
)
)
]
]
10,
),
),
],
],
}
14 changes: 8 additions & 6 deletions tests/test_inline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ use serde::Serialize;

#[test]
fn test_simple() {
assert_debug_snapshot_matches!(vec![1, 2, 3, 4], @r###"[
1,
2,
3,
4
]"###);
assert_debug_snapshot_matches!(vec![1, 2, 3, 4], @r###"
⋮[
⋮ 1,
⋮ 2,
⋮ 3,
⋮ 4,
⋮]
"###);
}

#[test]
Expand Down

0 comments on commit d5d7f85

Please sign in to comment.