diff options
author | Aleksey Kladov <[email protected]> | 2020-08-28 13:47:14 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-08-28 13:47:14 +0100 |
commit | c692b5d76d7a9c01643f1f4be3fa8c777a9b0adb (patch) | |
tree | 482f663be7ad64ee0d9dce46241006a990a69460 /crates/ide | |
parent | c9c0050fff45ebee56e5be8ae0add849fddfc85a (diff) |
:arrow_up: expect-test
Diffstat (limited to 'crates/ide')
9 files changed, 8 insertions, 8 deletions
diff --git a/crates/ide/Cargo.toml b/crates/ide/Cargo.toml index a15f704ca..f0257403d 100644 --- a/crates/ide/Cargo.toml +++ b/crates/ide/Cargo.toml | |||
@@ -36,4 +36,4 @@ ssr = { path = "../ssr", version = "0.0.0" } | |||
36 | hir = { path = "../hir", version = "0.0.0" } | 36 | hir = { path = "../hir", version = "0.0.0" } |
37 | 37 | ||
38 | [dev-dependencies] | 38 | [dev-dependencies] |
39 | expect-test = "0.1" | 39 | expect-test = "1.0" |
diff --git a/crates/ide/test_data/highlight_doctest.html b/crates/ide/src/syntax_highlighting/test_data/highlight_doctest.html index 6322d404f..6322d404f 100644 --- a/crates/ide/test_data/highlight_doctest.html +++ b/crates/ide/src/syntax_highlighting/test_data/highlight_doctest.html | |||
diff --git a/crates/ide/test_data/highlight_extern_crate.html b/crates/ide/src/syntax_highlighting/test_data/highlight_extern_crate.html index 800d894c7..800d894c7 100644 --- a/crates/ide/test_data/highlight_extern_crate.html +++ b/crates/ide/src/syntax_highlighting/test_data/highlight_extern_crate.html | |||
diff --git a/crates/ide/test_data/highlight_injection.html b/crates/ide/src/syntax_highlighting/test_data/highlight_injection.html index 18addd00d..18addd00d 100644 --- a/crates/ide/test_data/highlight_injection.html +++ b/crates/ide/src/syntax_highlighting/test_data/highlight_injection.html | |||
diff --git a/crates/ide/test_data/highlight_strings.html b/crates/ide/src/syntax_highlighting/test_data/highlight_strings.html index 1b681b2c6..1b681b2c6 100644 --- a/crates/ide/test_data/highlight_strings.html +++ b/crates/ide/src/syntax_highlighting/test_data/highlight_strings.html | |||
diff --git a/crates/ide/test_data/highlight_unsafe.html b/crates/ide/src/syntax_highlighting/test_data/highlight_unsafe.html index 552fea668..552fea668 100644 --- a/crates/ide/test_data/highlight_unsafe.html +++ b/crates/ide/src/syntax_highlighting/test_data/highlight_unsafe.html | |||
diff --git a/crates/ide/test_data/highlighting.html b/crates/ide/src/syntax_highlighting/test_data/highlighting.html index d0df2e0ec..d0df2e0ec 100644 --- a/crates/ide/test_data/highlighting.html +++ b/crates/ide/src/syntax_highlighting/test_data/highlighting.html | |||
diff --git a/crates/ide/test_data/rainbow_highlighting.html b/crates/ide/src/syntax_highlighting/test_data/rainbow_highlighting.html index 401e87a73..401e87a73 100644 --- a/crates/ide/test_data/rainbow_highlighting.html +++ b/crates/ide/src/syntax_highlighting/test_data/rainbow_highlighting.html | |||
diff --git a/crates/ide/src/syntax_highlighting/tests.rs b/crates/ide/src/syntax_highlighting/tests.rs index 1c3fea058..6f72a29bd 100644 --- a/crates/ide/src/syntax_highlighting/tests.rs +++ b/crates/ide/src/syntax_highlighting/tests.rs | |||
@@ -144,7 +144,7 @@ impl<T> Option<T> { | |||
144 | } | 144 | } |
145 | "# | 145 | "# |
146 | .trim(), | 146 | .trim(), |
147 | expect_file!["crates/ide/test_data/highlighting.html"], | 147 | expect_file!["./test_data/highlighting.html"], |
148 | false, | 148 | false, |
149 | ); | 149 | ); |
150 | } | 150 | } |
@@ -167,7 +167,7 @@ fn bar() { | |||
167 | } | 167 | } |
168 | "# | 168 | "# |
169 | .trim(), | 169 | .trim(), |
170 | expect_file!["crates/ide/test_data/rainbow_highlighting.html"], | 170 | expect_file!["./test_data/rainbow_highlighting.html"], |
171 | true, | 171 | true, |
172 | ); | 172 | ); |
173 | } | 173 | } |
@@ -220,7 +220,7 @@ fn main() { | |||
220 | ); | 220 | ); |
221 | }"## | 221 | }"## |
222 | .trim(), | 222 | .trim(), |
223 | expect_file!["crates/ide/test_data/highlight_injection.html"], | 223 | expect_file!["./test_data/highlight_injection.html"], |
224 | false, | 224 | false, |
225 | ); | 225 | ); |
226 | } | 226 | } |
@@ -303,7 +303,7 @@ fn main() { | |||
303 | println!("{ничоси}", ничоси = 92); | 303 | println!("{ничоси}", ничоси = 92); |
304 | }"# | 304 | }"# |
305 | .trim(), | 305 | .trim(), |
306 | expect_file!["crates/ide/test_data/highlight_strings.html"], | 306 | expect_file!["./test_data/highlight_strings.html"], |
307 | false, | 307 | false, |
308 | ); | 308 | ); |
309 | } | 309 | } |
@@ -376,7 +376,7 @@ fn main() { | |||
376 | } | 376 | } |
377 | "# | 377 | "# |
378 | .trim(), | 378 | .trim(), |
379 | expect_file!["crates/ide/test_data/highlight_unsafe.html"], | 379 | expect_file!["./test_data/highlight_unsafe.html"], |
380 | false, | 380 | false, |
381 | ); | 381 | ); |
382 | } | 382 | } |
@@ -452,7 +452,7 @@ macro_rules! noop { | |||
452 | } | 452 | } |
453 | "# | 453 | "# |
454 | .trim(), | 454 | .trim(), |
455 | expect_file!["crates/ide/test_data/highlight_doctest.html"], | 455 | expect_file!["./test_data/highlight_doctest.html"], |
456 | false, | 456 | false, |
457 | ); | 457 | ); |
458 | } | 458 | } |
@@ -469,7 +469,7 @@ fn test_extern_crate() { | |||
469 | //- /alloc/lib.rs | 469 | //- /alloc/lib.rs |
470 | pub struct A | 470 | pub struct A |
471 | "#, | 471 | "#, |
472 | expect_file!["crates/ide/test_data/highlight_extern_crate.html"], | 472 | expect_file!["./test_data/highlight_extern_crate.html"], |
473 | false, | 473 | false, |
474 | ); | 474 | ); |
475 | } | 475 | } |