Skip to content

Commit

Permalink
2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
CGJennings committed Feb 8, 2023
1 parent 72c22b2 commit 9871baf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fast-ternary-string-set",
"version": "2.3.0",
"version": "2.4.0",
"description": "",
"keywords": [
"ternary search tree",
Expand Down
8 changes: 6 additions & 2 deletions src/tests/approx-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ test("getCompletedBy() test against word list", () => {

test("getPartialMatchesOf() bad arguments throw", () => {
expect(() => set.getPartialMatchesOf(null as unknown as string)).toThrow();
expect(() => set.getPartialMatchesOf("", null as unknown as string)).toThrow();
expect(() =>
set.getPartialMatchesOf("", null as unknown as string),
).toThrow();
});

test("getPartialMatchesOf() basic partial matches", () => {
Expand Down Expand Up @@ -274,7 +276,9 @@ test("getPartialMatchesOf() matches with non-default don't care", () => {
});

test("getWithinHammingDistanceOf() bad arguments throw", () => {
expect(() => set.getWithinHammingDistanceOf(null as unknown as string, 0)).toThrow();
expect(() =>
set.getWithinHammingDistanceOf(null as unknown as string, 0),
).toThrow();
expect(() => set.getWithinHammingDistanceOf("", -1)).toThrow();
expect(() => set.getWithinHammingDistanceOf("", NaN)).toThrow();
expect(() =>
Expand Down

0 comments on commit 9871baf

Please sign in to comment.