We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f9a08b commit a8ab2deCopy full SHA for a8ab2de
src/translator/test.ts
@@ -2,7 +2,6 @@
2
3
import { assertArrayIncludes } from "@std/assert/array-includes";
4
import { translate } from "./translator.ts";
5
-import { assert } from "@std/assert/assert";
6
import { number } from "./number.ts";
7
8
Deno.test("verb with adverb", () => {
@@ -36,6 +35,6 @@ const NUMBER_TESTS = new Map(Object.entries({
36
35
Deno.test("numeral translation", () => {
37
for (const [tokiPona, expected] of NUMBER_TESTS) {
38
const numbers = number(tokiPona.trim().split(" ")).unwrap();
39
- assert(numbers.includes(expected), `Error at "${tokiPona}"`);
+ assertArrayIncludes(numbers, [expected], `Error at "${tokiPona}"`);
40
}
41
});
0 commit comments