Skip to content

Commit

Permalink
[Tests] add tests for regexes with the same source but different flags
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jan 14, 2021
1 parent 7d2a306 commit 29c8a0d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/cmp.js
Original file line number Diff line number Diff line change
Expand Up @@ -847,6 +847,16 @@ test('regexen', function (t) {
false
);

var c = /abc/g;
var d = /abc/i;
t.deepEqualTest(
c,
d,
'two regexes with the same source but different flags',
false,
false
);

t.end();
});

Expand Down

0 comments on commit 29c8a0d

Please sign in to comment.