Skip to content

Commit 5d4cb8e

Browse files
committed
update test
Signed-off-by: xxchan <[email protected]>
1 parent afda7ac commit 5d4cb8e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,9 @@ line1
857857

858858
// Check `expect![[ ]]` as well.
859859
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));
860863
}
861864

862865
#[test]

0 commit comments

Comments
 (0)