diff options
author | Aleksey Kladov <[email protected]> | 2019-05-21 11:18:30 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-05-21 12:14:31 +0100 |
commit | 0efb5364c35636d5e985e23bd11965f574cbd9da (patch) | |
tree | 9ae85eafb717fa3255545b48645d5e8acd73eedc /crates/ra_hir/src/nameres/tests | |
parent | 8b6f02d0d6f587c344cda98d64eef784a58e0249 (diff) |
sort hash maps for tests
Diffstat (limited to 'crates/ra_hir/src/nameres/tests')
-rw-r--r-- | crates/ra_hir/src/nameres/tests/globs.rs | 76 | ||||
-rw-r--r-- | crates/ra_hir/src/nameres/tests/macros.rs | 54 |
2 files changed, 65 insertions, 65 deletions
diff --git a/crates/ra_hir/src/nameres/tests/globs.rs b/crates/ra_hir/src/nameres/tests/globs.rs index 6e50c7ff6..e1519ca6b 100644 --- a/crates/ra_hir/src/nameres/tests/globs.rs +++ b/crates/ra_hir/src/nameres/tests/globs.rs | |||
@@ -18,20 +18,20 @@ fn glob_1() { | |||
18 | ", | 18 | ", |
19 | ); | 19 | ); |
20 | assert_snapshot_matches!(map, @r###" | 20 | assert_snapshot_matches!(map, @r###" |
21 | crate | 21 | ⋮crate |
22 | bar: t | 22 | ⋮Baz: t v |
23 | Foo: t v | 23 | ⋮Foo: t v |
24 | Baz: t v | 24 | ⋮bar: t |
25 | foo: t | 25 | ⋮foo: t |
26 | 26 | ⋮ | |
27 | crate::foo | 27 | ⋮crate::foo |
28 | bar: t | 28 | ⋮Baz: t v |
29 | Foo: t v | 29 | ⋮Foo: t v |
30 | Baz: t v | 30 | ⋮bar: t |
31 | 31 | ⋮ | |
32 | crate::foo::bar | 32 | ⋮crate::foo::bar |
33 | Baz: t v | 33 | ⋮Baz: t v |
34 | "### | 34 | "### |
35 | ); | 35 | ); |
36 | } | 36 | } |
37 | 37 | ||
@@ -54,22 +54,22 @@ fn glob_2() { | |||
54 | ", | 54 | ", |
55 | ); | 55 | ); |
56 | assert_snapshot_matches!(map, @r###" | 56 | assert_snapshot_matches!(map, @r###" |
57 | crate | 57 | ⋮crate |
58 | bar: t | 58 | ⋮Baz: t v |
59 | Foo: t v | 59 | ⋮Foo: t v |
60 | Baz: t v | 60 | ⋮bar: t |
61 | foo: t | 61 | ⋮foo: t |
62 | 62 | ⋮ | |
63 | crate::foo | 63 | ⋮crate::foo |
64 | bar: t | 64 | ⋮Baz: t v |
65 | Foo: t v | 65 | ⋮Foo: t v |
66 | Baz: t v | 66 | ⋮bar: t |
67 | 67 | ⋮ | |
68 | crate::foo::bar | 68 | ⋮crate::foo::bar |
69 | bar: t | 69 | ⋮Baz: t v |
70 | Foo: t v | 70 | ⋮Foo: t v |
71 | Baz: t v | 71 | ⋮bar: t |
72 | "### | 72 | "### |
73 | ); | 73 | ); |
74 | } | 74 | } |
75 | 75 | ||
@@ -90,9 +90,9 @@ fn glob_across_crates() { | |||
90 | }, | 90 | }, |
91 | ); | 91 | ); |
92 | assert_snapshot_matches!(map, @r###" | 92 | assert_snapshot_matches!(map, @r###" |
93 | crate | 93 | ⋮crate |
94 | Baz: t v | 94 | ⋮Baz: t v |
95 | "### | 95 | "### |
96 | ); | 96 | ); |
97 | } | 97 | } |
98 | 98 | ||
@@ -109,10 +109,10 @@ fn glob_enum() { | |||
109 | ", | 109 | ", |
110 | ); | 110 | ); |
111 | assert_snapshot_matches!(map, @r###" | 111 | assert_snapshot_matches!(map, @r###" |
112 | crate | 112 | ⋮crate |
113 | Foo: t | 113 | ⋮Bar: t v |
114 | Bar: t v | 114 | ⋮Baz: t v |
115 | Baz: t v | 115 | ⋮Foo: t |
116 | "### | 116 | "### |
117 | ); | 117 | ); |
118 | } | 118 | } |
diff --git a/crates/ra_hir/src/nameres/tests/macros.rs b/crates/ra_hir/src/nameres/tests/macros.rs index 8781b026b..f7ca380ad 100644 --- a/crates/ra_hir/src/nameres/tests/macros.rs +++ b/crates/ra_hir/src/nameres/tests/macros.rs | |||
@@ -18,14 +18,14 @@ fn macro_rules_are_globally_visible() { | |||
18 | ", | 18 | ", |
19 | ); | 19 | ); |
20 | assert_snapshot_matches!(map, @r###" | 20 | assert_snapshot_matches!(map, @r###" |
21 | crate | 21 | ⋮crate |
22 | nested: t | 22 | ⋮Foo: t v |
23 | Foo: t v | 23 | ⋮nested: t |
24 | 24 | ⋮ | |
25 | crate::nested | 25 | ⋮crate::nested |
26 | Bar: t v | 26 | ⋮Bar: t v |
27 | Baz: t v | 27 | ⋮Baz: t v |
28 | "###); | 28 | "###); |
29 | } | 29 | } |
30 | 30 | ||
31 | #[test] | 31 | #[test] |
@@ -45,15 +45,15 @@ fn macro_rules_can_define_modules() { | |||
45 | ", | 45 | ", |
46 | ); | 46 | ); |
47 | assert_snapshot_matches!(map, @r###" | 47 | assert_snapshot_matches!(map, @r###" |
48 | crate | 48 | ⋮crate |
49 | n1: t | 49 | ⋮n1: t |
50 | 50 | ⋮ | |
51 | crate::n1 | 51 | ⋮crate::n1 |
52 | n2: t | 52 | ⋮n2: t |
53 | 53 | ⋮ | |
54 | crate::n1::n2 | 54 | ⋮crate::n1::n2 |
55 | X: t v | 55 | ⋮X: t v |
56 | "###); | 56 | "###); |
57 | } | 57 | } |
58 | 58 | ||
59 | #[test] | 59 | #[test] |
@@ -81,14 +81,14 @@ fn macro_rules_from_other_crates_are_visible() { | |||
81 | }, | 81 | }, |
82 | ); | 82 | ); |
83 | assert_snapshot_matches!(map, @r###" | 83 | assert_snapshot_matches!(map, @r###" |
84 | crate | 84 | ⋮crate |
85 | bar: t | 85 | ⋮Bar: t v |
86 | Foo: t v | 86 | ⋮Foo: t v |
87 | Bar: t v | 87 | ⋮bar: t |
88 | 88 | ⋮ | |
89 | crate::bar | 89 | ⋮crate::bar |
90 | bar: t | 90 | ⋮Bar: t v |
91 | Foo: t v | 91 | ⋮Foo: t v |
92 | Bar: t v | 92 | ⋮bar: t |
93 | "###); | 93 | "###); |
94 | } | 94 | } |