summaryrefslogtreecommitdiff
path: root/bytes
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-03-06 19:42:24 -0500
committerGitHub <noreply@github.com>2019-03-06 19:42:24 -0500
commitcaa383a5835c167bf6657120ad3c1c5009670785 (patch)
tree2f350928e23e472278b9c3ebd798f13169b6d581 /bytes
parente36edfdb3fd4709358a5f499f13cfe3d53c2b4f7 (diff)
Rename assertEq to assertEquals (denoland/deno_std#242)
After some discussion it was found that assertEquals is more common in JS (vs assertEqual, assertEq) and sounds better in the negated form: assertNotEquals vs assertNE. Original: https://github.com/denoland/deno_std/commit/4cf39d4a1420b8153cd78d03d03ef843607ae506
Diffstat (limited to 'bytes')
-rw-r--r--bytes/bytes_test.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/bytes/bytes_test.ts b/bytes/bytes_test.ts
index 0d2d89131..b91991eb3 100644
--- a/bytes/bytes_test.ts
+++ b/bytes/bytes_test.ts
@@ -5,14 +5,14 @@ import {
bytesHasPrefix
} from "./bytes.ts";
import { test } from "../testing/mod.ts";
-import { assertEq } from "../testing/asserts.ts";
+import { assertEquals } from "../testing/asserts.ts";
test(function bytesBytesFindIndex() {
const i = bytesFindIndex(
new Uint8Array([1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 3]),
new Uint8Array([0, 1, 2])
);
- assertEq(i, 2);
+ assertEquals(i, 2);
});
test(function bytesBytesFindLastIndex1() {
@@ -20,7 +20,7 @@ test(function bytesBytesFindLastIndex1() {
new Uint8Array([0, 1, 2, 0, 1, 2, 0, 1, 3]),
new Uint8Array([0, 1, 2])
);
- assertEq(i, 3);
+ assertEquals(i, 3);
});
test(function bytesBytesBytesEqual() {
@@ -28,10 +28,10 @@ test(function bytesBytesBytesEqual() {
new Uint8Array([0, 1, 2, 3]),
new Uint8Array([0, 1, 2, 3])
);
- assertEq(v, true);
+ assertEquals(v, true);
});
test(function bytesBytesHasPrefix() {
const v = bytesHasPrefix(new Uint8Array([0, 1, 2]), new Uint8Array([0, 1]));
- assertEq(v, true);
+ assertEquals(v, true);
});