Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
Signed-off-by: xxchan <[email protected]>
  • Loading branch information
xxchan committed May 16, 2024
1 parent afda7ac commit 5d4cb8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,9 @@ line1

// Check `expect![[ ]]` as well.
assert_eq!(locate_end("[]]"), Some(2));
// For `expect![]]`, this will be invalid syntax: Syntax Error: expected SEMICOLON
// In `locate_end`, we just find the first `]` is the end position and ignores the rest.
assert_eq!(locate_end("]]"), Some(0));
}

#[test]
Expand Down

0 comments on commit 5d4cb8e

Please sign in to comment.