Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/proc-macro-srv/src/tests/mod.rs')
| -rw-r--r-- | crates/proc-macro-srv/src/tests/mod.rs | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/crates/proc-macro-srv/src/tests/mod.rs b/crates/proc-macro-srv/src/tests/mod.rs index 7a0ac01c50..36cd675b9a 100644 --- a/crates/proc-macro-srv/src/tests/mod.rs +++ b/crates/proc-macro-srv/src/tests/mod.rs @@ -248,13 +248,17 @@ fn test_fn_like_mk_literals() { LITERAL Str string 1 LITERAL CStr cstring 1 LITERAL Float 3.14f64 1 - LITERAL Float -3.14f64 1 + PUNCH - [alone] 1 + LITERAL Float 3.14f64 1 + LITERAL Float 3.14 1 + PUNCH - [alone] 1 LITERAL Float 3.14 1 - LITERAL Float -3.14 1 LITERAL Integer 123i64 1 - LITERAL Integer -123i64 1 + PUNCH - [alone] 1 + LITERAL Integer 123i64 1 LITERAL Integer 123 1 - LITERAL Integer -123 1"#]], + PUNCH - [alone] 1 + LITERAL Integer 123 1"#]], expect![[r#" SUBTREE $$ 42:[email protected]#ROOT2024 42:[email protected]#ROOT2024 @@ -266,13 +270,17 @@ fn test_fn_like_mk_literals() { LITERAL Str string 42:[email protected]#ROOT2024 LITERAL CStr cstring 42:[email protected]#ROOT2024 LITERAL Float 3.14f64 42:[email protected]#ROOT2024 - LITERAL Float -3.14f64 42:[email protected]#ROOT2024 + PUNCH - [alone] 42:[email protected]#ROOT2024 + LITERAL Float 3.14f64 42:[email protected]#ROOT2024 + LITERAL Float 3.14 42:[email protected]#ROOT2024 + PUNCH - [alone] 42:[email protected]#ROOT2024 LITERAL Float 3.14 42:[email protected]#ROOT2024 - LITERAL Float -3.14 42:[email protected]#ROOT2024 LITERAL Integer 123i64 42:[email protected]#ROOT2024 - LITERAL Integer -123i64 42:[email protected]#ROOT2024 + PUNCH - [alone] 42:[email protected]#ROOT2024 + LITERAL Integer 123i64 42:[email protected]#ROOT2024 LITERAL Integer 123 42:[email protected]#ROOT2024 - LITERAL Integer -123 42:[email protected]#ROOT2024"#]], + PUNCH - [alone] 42:[email protected]#ROOT2024 + LITERAL Integer 123 42:[email protected]#ROOT2024"#]], ); } @@ -400,7 +408,6 @@ fn test_fn_like_macro_clone_literals() { ); } - #[test] fn test_fn_like_macro_negative_literals() { assert_expand( |