Skip to content

Commit 6199f1e

Browse files
committed
implemented test for all_valid_leading_comments
1 parent 71c0f95 commit 6199f1e

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/comments.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -873,10 +873,8 @@ CREATE TABLE posts (
873873
),
874874
];
875875

876-
// IMPORTANT: use Comments::new to enforce ordering invariants
877876
let comments = Comments::new(comment_vec);
878877

879-
// Statement is on line 5; leading comment block should be lines 3-4 only.
880878
let leading = comments.all_valid_leading_comments(5);
881879

882880
assert_eq!(leading.len(), 2);

0 commit comments

Comments
 (0)