Skip to content

Commit

Permalink
File rename
Browse files Browse the repository at this point in the history
  • Loading branch information
pokey committed Nov 27, 2021
1 parent fd37e49 commit 43e4617
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ interface Fixture {
expectedOutput: string[];
}

export const subwordFixture: Fixture[] = [
export const subtokenFixture: Fixture[] = [
{
input: "QuickBrownFox",
expectedOutput: ["Quick", "Brown", "Fox"],
Expand Down Expand Up @@ -67,5 +67,5 @@ export const subwordFixture: Fixture[] = [
{
input: "mockAPIClient123Factory",
expectedOutput: ["mock", "API", "Client", "123", "Factory"],
}
},
];
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import * as assert from "assert";

import { SUBWORD_MATCHER } from "../../core/constants";
import { subwordFixture } from "./fixtures/constants.fixture";
import { subtokenFixture } from "./fixtures/subtoken.fixture";

suite("subword regex matcher", () => {
subwordFixture.forEach(({ input, expectedOutput }, index) => {
suite("subtoken regex matcher", () => {
subtokenFixture.forEach(({ input, expectedOutput }, index) => {
test(input, () => {
assert.deepStrictEqual(input.match(SUBWORD_MATCHER), expectedOutput);
});
Expand Down

0 comments on commit 43e4617

Please sign in to comment.