Skip to content

Commit

Permalink
Fix fromString("ck")
Browse files Browse the repository at this point in the history
  • Loading branch information
abadi199 committed Apr 1, 2020
1 parent 9edd4c1 commit ebaf2d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion __tests__/Word_test.re
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe("Word", () => {
);

test("fromString(\"qu,i,c,k\")", () =>
expect("qu,i,c,k" |> Word.fromString) |> toEqual([qu, i, c, k])
expect("qu,i,ck" |> Word.fromString) |> toEqual([qu, i, ck])
);
});

Expand Down
1 change: 1 addition & 0 deletions src/Phoneme.re
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ let fromString = (sound: string): option(phoneme) => {
| "x" => Some(x)
| "ng" => Some(ng)
| "nk" => Some(nk)
| "ck" => Some(ck)
| _ => None
};
};
Expand Down

0 comments on commit ebaf2d6

Please sign in to comment.