Skip to content

Commit

Permalink
[ops] Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
peterver committed Nov 29, 2023
1 parent 2cc43e1 commit f8cd202
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions test/src/equal.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -98,18 +98,10 @@ describe('Equal', () => {
it('Correctly flag equal', () => {
assert.ok(equal(/abcdefg/i, /abcdefg/i));
assert.ok(equal(/abcdefg/i, new RegExp('abcdefg', 'i')));
assert.ok(equal(
/^(.w{2,3})+$/,
new RegExp('^(.w{2,3})+$')
));
});

it('Correctly flag inconsistency', () => {
assert.equal(equal(/abcdefg/i, /abcdefg/), false);
assert.equal(equal(
/^w+([.-]?w+)*@w+([.-]?w+)*(.w{2,3})+$/,
new RegExp('^w+([-]?w+)*@w+([.-]?w+)*(.w{2,3})+$')
), false);
assert.equal(equal(/abcdefg/i, 'abcdefg'), false);
assert.equal(equal(/abcdefg/i, true), false);
});
Expand Down

0 comments on commit f8cd202

Please sign in to comment.