Skip to content

Commit 7051a6e

Browse files
committed
use better assert function
1 parent aab65be commit 7051a6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/parser/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This code is Deno only
22

3-
import { assert } from "@std/assert/assert";
43
import { assertEquals } from "@std/assert/equals";
4+
import { assertLess } from "@std/assert/less";
55
import { assertNotEquals } from "@std/assert/not-equals";
66
import { assertThrows } from "@std/assert/throws";
77
import { EXAMPLE_SENTENCES, MALFORMED_SENTENCES } from "../examples.ts";
@@ -33,7 +33,7 @@ Deno.test("ucsur ordered", () => {
3333
for (const [i, word] of PU.entries()) {
3434
if (i < PU.length - 1) {
3535
const other = PU[i + 1];
36-
assert(word < PU[i + 1], `error between ${word} and ${other}`);
36+
assertLess(word, PU[i + 1], `error between ${word} and ${other}`);
3737
}
3838
}
3939
});

0 commit comments

Comments
 (0)