Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/syntax_highlighting/tests.rs')
| -rw-r--r-- | crates/ide/src/syntax_highlighting/tests.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/crates/ide/src/syntax_highlighting/tests.rs b/crates/ide/src/syntax_highlighting/tests.rs index f5f7d8fe95..e7bfbcc604 100644 --- a/crates/ide/src/syntax_highlighting/tests.rs +++ b/crates/ide/src/syntax_highlighting/tests.rs @@ -777,6 +777,23 @@ fn test_extern_crate() { } #[test] +fn test_default_library() { + check_highlighting( + r#" + //- minicore: option, iterators + use core::iter; + + fn main() { + let foo = Some(92); + let nums = iter::repeat(foo.unwrap()); + } + "#, + expect_file!["./test_data/highlight_default_library.html"], + false, + ); +} + +#[test] fn test_associated_function() { check_highlighting( r#" |