Skip to content

Commit 0416fe2

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

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/lib.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -855,11 +855,10 @@ line1
855855
[[r#""]]"#]],
856856
);
857857

858-
// Check `expect![[ ]]` as well.
858+
// Check `expect![[ ]]`
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));
860+
// Check `expect![ ]`
861+
assert_eq!(locate_end("]"), Some(0));
863862
}
864863

865864
#[test]

0 commit comments

Comments
 (0)