Skip to content

Commit

Permalink
test: add more test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
DonIsaac committed Jul 20, 2024
1 parent f58d984 commit 4e4e4e9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,9 @@ fn test() {
// should not get fixed
("/^foo/.test(new String('bar'))", "/^foo/.test(new String('bar'))", None),
("/^foo/.test(x as string)", "/^foo/.test(x as string)", None),
("/^foo/.test(5)", "/^foo/.test(5)", None),
("/^foo/.test(x?.y)", "/^foo/.test(x?.y)", None),
("/^foo/.test(x + y)", "/^foo/.test(x + y)", None),
];

Tester::new(PreferStringStartsEndsWith::NAME, pass, fail).expect_fix(fix).test_and_snapshot();
Expand Down

0 comments on commit 4e4e4e9

Please sign in to comment.