X-Git-Url: https://git.ladys.computer/Pisces/blobdiff_plain/3b7b484743da35b1772b3fb04378dc88f75fc41f..83f6aae0d1b8181dc2b0c6ccdba9f2fe2fdba3e6:/string.test.js?ds=sidebyside diff --git a/string.test.js b/string.test.js index 94aec37..e3d1096 100644 --- a/string.test.js +++ b/string.test.js @@ -10,7 +10,6 @@ import { assert, assertEquals, - assertSpyCall, assertSpyCalls, assertStrictEquals, assertThrows, @@ -101,6 +100,7 @@ describe("Matcher", () => { return "etaoin"; }, }); + assertEquals([...result], ["etaoin", "e"]); assertSpyCalls(constraint, 1); assertStrictEquals(constraint.calls[0].args[0], "etaoin"); assertEquals([...constraint.calls[0].args[1]], ["etaoin", "e"]); @@ -184,6 +184,12 @@ describe("Matcher", () => { }); }); + describe("::toString", () => { + it("[[Get]] does not throw an error", () => { + new Matcher(/(?:)/u).toString(); + }); + }); + describe("::unicode", () => { it("[[Get]] returns true when the unicode flag is present", () => { assertStrictEquals(new Matcher(/(?:)/u).unicode, true);