We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d4cb8e commit 0416fe2Copy full SHA for 0416fe2
src/lib.rs
@@ -855,11 +855,10 @@ line1
855
[[r#""]]"#]],
856
);
857
858
- // Check `expect![[ ]]` as well.
+ // Check `expect![[ ]]`
859
assert_eq!(locate_end("[]]"), Some(2));
860
- // For `expect![]]`, this will be invalid syntax: Syntax Error: expected SEMICOLON
861
- // In `locate_end`, we just find the first `]` is the end position and ignores the rest.
862
- assert_eq!(locate_end("]]"), Some(0));
+ // Check `expect![ ]`
+ assert_eq!(locate_end("]"), Some(0));
863
}
864
865
#[test]
0 commit comments