Skip to content

Commit a8ab2de

Browse files
committed
refactor test
1 parent 3f9a08b commit a8ab2de

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/translator/test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import { assertArrayIncludes } from "@std/assert/array-includes";
44
import { translate } from "./translator.ts";
5-
import { assert } from "@std/assert/assert";
65
import { number } from "./number.ts";
76

87
Deno.test("verb with adverb", () => {
@@ -36,6 +35,6 @@ const NUMBER_TESTS = new Map(Object.entries({
3635
Deno.test("numeral translation", () => {
3736
for (const [tokiPona, expected] of NUMBER_TESTS) {
3837
const numbers = number(tokiPona.trim().split(" ")).unwrap();
39-
assert(numbers.includes(expected), `Error at "${tokiPona}"`);
38+
assertArrayIncludes(numbers, [expected], `Error at "${tokiPona}"`);
4039
}
4140
});

0 commit comments

Comments
 (0)