Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
schungx committed Aug 2, 2023
1 parent e4f4b54 commit 6277a5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/comments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ fn test_comments_doc() {
#[cfg(feature = "no_position")]
assert_eq!(
ast.iter_functions().next().unwrap().comments[0],
"/** Hello world\n ** how are you?\n **/",
"/** Hello world\n ** how are you?\n **/",
);

assert!(engine
Expand Down
2 changes: 1 addition & 1 deletion tests/tokens.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ fn test_tokens_unicode_xid_ident() {
",
);
#[cfg(feature = "unicode-xid-ident")]
assert_eq!(result?, 42);
assert_eq!(result.unwrap(), 42);

#[cfg(not(feature = "unicode-xid-ident"))]
assert!(result.is_err());
Expand Down

0 comments on commit 6277a5d

Please sign in to comment.