Skip to content

Commit 1a1087a

Browse files
committed
Leading comment collection testing verified passing; Fixes #20
1 parent b0d6fb8 commit 1a1087a

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/comments.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -849,10 +849,7 @@ CREATE TABLE posts (
849849

850850
#[test]
851851
fn leading_comment_capture_default_is_single_nearest() {
852-
match LeadingCommentCapture::default() {
853-
LeadingCommentCapture::SingleNearest => {}
854-
_ => panic!("Default for LeadingCommentCapture must be SingleNearest"),
855-
}
852+
assert_eq!(LeadingCommentCapture::default(), LeadingCommentCapture::SingleNearest);
856853
}
857854

858855
#[test]

0 commit comments

Comments
 (0)