diff options
author | Aleksey Kladov <[email protected]> | 2020-07-01 10:25:22 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-01 10:26:09 +0100 |
commit | 05d67a9a0efafb3dd5087aad17d75aa88aa85178 (patch) | |
tree | 09d2a86085726b0fd08b6a27bfd19001395ac14a | |
parent | adf624b433277a0106f5354bb7d62ab1a04f216b (diff) |
Move test data to test_data directory
-rw-r--r-- | crates/expect/src/lib.rs | 2 | ||||
-rw-r--r-- | crates/ra_ide/src/syntax_highlighting/tests.rs | 12 | ||||
-rw-r--r-- | crates/ra_ide/test_data/highlight_doctest.html (renamed from crates/ra_ide/src/snapshots/highlight_doctest.html) | 0 | ||||
-rw-r--r-- | crates/ra_ide/test_data/highlight_injection.html (renamed from crates/ra_ide/src/snapshots/highlight_injection.html) | 0 | ||||
-rw-r--r-- | crates/ra_ide/test_data/highlight_strings.html (renamed from crates/ra_ide/src/snapshots/highlight_strings.html) | 0 | ||||
-rw-r--r-- | crates/ra_ide/test_data/highlight_unsafe.html (renamed from crates/ra_ide/src/snapshots/highlight_unsafe.html) | 0 | ||||
-rw-r--r-- | crates/ra_ide/test_data/highlighting.html (renamed from crates/ra_ide/src/snapshots/highlighting.html) | 0 | ||||
-rw-r--r-- | crates/ra_ide/test_data/rainbow_highlighting.html (renamed from crates/ra_ide/src/snapshots/rainbow_highlighting.html) | 0 |
8 files changed, 7 insertions, 7 deletions
diff --git a/crates/expect/src/lib.rs b/crates/expect/src/lib.rs index 3f293f5d5..a5e26fade 100644 --- a/crates/expect/src/lib.rs +++ b/crates/expect/src/lib.rs | |||
@@ -39,7 +39,7 @@ macro_rules! expect { | |||
39 | [[]] => { $crate::expect![[""]] }; | 39 | [[]] => { $crate::expect![[""]] }; |
40 | } | 40 | } |
41 | 41 | ||
42 | /// expect_file!["/crates/foo/test_data/foo.rs"] | 42 | /// expect_file!["/crates/foo/test_data/bar.html"] |
43 | #[macro_export] | 43 | #[macro_export] |
44 | macro_rules! expect_file { | 44 | macro_rules! expect_file { |
45 | [$path:literal] => {$crate::ExpectFile { path: $path }}; | 45 | [$path:literal] => {$crate::ExpectFile { path: $path }}; |
diff --git a/crates/ra_ide/src/syntax_highlighting/tests.rs b/crates/ra_ide/src/syntax_highlighting/tests.rs index f19628485..aa7c887d6 100644 --- a/crates/ra_ide/src/syntax_highlighting/tests.rs +++ b/crates/ra_ide/src/syntax_highlighting/tests.rs | |||
@@ -92,7 +92,7 @@ impl<T> Option<T> { | |||
92 | } | 92 | } |
93 | "# | 93 | "# |
94 | .trim(), | 94 | .trim(), |
95 | expect_file!["crates/ra_ide/src/snapshots/highlighting.html"], | 95 | expect_file!["crates/ra_ide/test_data/highlighting.html"], |
96 | false, | 96 | false, |
97 | ); | 97 | ); |
98 | } | 98 | } |
@@ -115,7 +115,7 @@ fn bar() { | |||
115 | } | 115 | } |
116 | "# | 116 | "# |
117 | .trim(), | 117 | .trim(), |
118 | expect_file!["crates/ra_ide/src/snapshots/rainbow_highlighting.html"], | 118 | expect_file!["crates/ra_ide/test_data/rainbow_highlighting.html"], |
119 | true, | 119 | true, |
120 | ); | 120 | ); |
121 | } | 121 | } |
@@ -168,7 +168,7 @@ fn main() { | |||
168 | ); | 168 | ); |
169 | }"## | 169 | }"## |
170 | .trim(), | 170 | .trim(), |
171 | expect_file!["crates/ra_ide/src/snapshots/highlight_injection.html"], | 171 | expect_file!["crates/ra_ide/test_data/highlight_injection.html"], |
172 | false, | 172 | false, |
173 | ); | 173 | ); |
174 | } | 174 | } |
@@ -251,7 +251,7 @@ fn main() { | |||
251 | println!("{ничоси}", ничоси = 92); | 251 | println!("{ничоси}", ничоси = 92); |
252 | }"# | 252 | }"# |
253 | .trim(), | 253 | .trim(), |
254 | expect_file!["crates/ra_ide/src/snapshots/highlight_strings.html"], | 254 | expect_file!["crates/ra_ide/test_data/highlight_strings.html"], |
255 | false, | 255 | false, |
256 | ); | 256 | ); |
257 | } | 257 | } |
@@ -279,7 +279,7 @@ fn main() { | |||
279 | } | 279 | } |
280 | "# | 280 | "# |
281 | .trim(), | 281 | .trim(), |
282 | expect_file!["crates/ra_ide/src/snapshots/highlight_unsafe.html"], | 282 | expect_file!["crates/ra_ide/test_data/highlight_unsafe.html"], |
283 | false, | 283 | false, |
284 | ); | 284 | ); |
285 | } | 285 | } |
@@ -355,7 +355,7 @@ macro_rules! noop { | |||
355 | } | 355 | } |
356 | "# | 356 | "# |
357 | .trim(), | 357 | .trim(), |
358 | expect_file!["crates/ra_ide/src/snapshots/highlight_doctest.html"], | 358 | expect_file!["crates/ra_ide/test_data/highlight_doctest.html"], |
359 | false, | 359 | false, |
360 | ); | 360 | ); |
361 | } | 361 | } |
diff --git a/crates/ra_ide/src/snapshots/highlight_doctest.html b/crates/ra_ide/test_data/highlight_doctest.html index e8155def7..e8155def7 100644 --- a/crates/ra_ide/src/snapshots/highlight_doctest.html +++ b/crates/ra_ide/test_data/highlight_doctest.html | |||
diff --git a/crates/ra_ide/src/snapshots/highlight_injection.html b/crates/ra_ide/test_data/highlight_injection.html index 1b0349bae..1b0349bae 100644 --- a/crates/ra_ide/src/snapshots/highlight_injection.html +++ b/crates/ra_ide/test_data/highlight_injection.html | |||
diff --git a/crates/ra_ide/src/snapshots/highlight_strings.html b/crates/ra_ide/test_data/highlight_strings.html index d184b5691..d184b5691 100644 --- a/crates/ra_ide/src/snapshots/highlight_strings.html +++ b/crates/ra_ide/test_data/highlight_strings.html | |||
diff --git a/crates/ra_ide/src/snapshots/highlight_unsafe.html b/crates/ra_ide/test_data/highlight_unsafe.html index 6936e949f..6936e949f 100644 --- a/crates/ra_ide/src/snapshots/highlight_unsafe.html +++ b/crates/ra_ide/test_data/highlight_unsafe.html | |||
diff --git a/crates/ra_ide/src/snapshots/highlighting.html b/crates/ra_ide/test_data/highlighting.html index 8d0b38f95..8d0b38f95 100644 --- a/crates/ra_ide/src/snapshots/highlighting.html +++ b/crates/ra_ide/test_data/highlighting.html | |||
diff --git a/crates/ra_ide/src/snapshots/rainbow_highlighting.html b/crates/ra_ide/test_data/rainbow_highlighting.html index 9516c7441..9516c7441 100644 --- a/crates/ra_ide/src/snapshots/rainbow_highlighting.html +++ b/crates/ra_ide/test_data/rainbow_highlighting.html | |||