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 afda7ac commit 5d4cb8eCopy full SHA for 5d4cb8e
src/lib.rs
@@ -857,6 +857,9 @@ line1
857
858
// Check `expect![[ ]]` as well.
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));
863
}
864
865
#[test]
0 commit comments