diff options
| author | Vincent LE GOFF <g_n_s@hotmail.fr> | 2019-03-06 22:39:50 +0100 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-03-06 16:39:50 -0500 |
| commit | e36edfdb3fd4709358a5f499f13cfe3d53c2b4f7 (patch) | |
| tree | 1baef3f876a5e75288c3ec9056cdb93dd6b5787f /bytes/bytes_test.ts | |
| parent | d29957ad17956016c35a04f5f1f98565e58e8a2e (diff) | |
Testing refactor (denoland/deno_std#240)
Original: https://github.com/denoland/deno_std/commit/e1d5c00279132aa639030c6c6d9b4e308bd4775e
Diffstat (limited to 'bytes/bytes_test.ts')
| -rw-r--r-- | bytes/bytes_test.ts | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/bytes/bytes_test.ts b/bytes/bytes_test.ts index 3d87497fe..0d2d89131 100644 --- a/bytes/bytes_test.ts +++ b/bytes/bytes_test.ts @@ -4,14 +4,15 @@ import { bytesEqual, bytesHasPrefix } from "./bytes.ts"; -import { assertEqual, test } from "./deps.ts"; +import { test } from "../testing/mod.ts"; +import { assertEq } 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]) ); - assertEqual(i, 2); + assertEq(i, 2); }); test(function bytesBytesFindLastIndex1() { @@ -19,7 +20,7 @@ test(function bytesBytesFindLastIndex1() { new Uint8Array([0, 1, 2, 0, 1, 2, 0, 1, 3]), new Uint8Array([0, 1, 2]) ); - assertEqual(i, 3); + assertEq(i, 3); }); test(function bytesBytesBytesEqual() { @@ -27,10 +28,10 @@ test(function bytesBytesBytesEqual() { new Uint8Array([0, 1, 2, 3]), new Uint8Array([0, 1, 2, 3]) ); - assertEqual(v, true); + assertEq(v, true); }); test(function bytesBytesHasPrefix() { const v = bytesHasPrefix(new Uint8Array([0, 1, 2]), new Uint8Array([0, 1])); - assertEqual(v, true); + assertEq(v, true); }); |
