diff options
| author | Vincent LE GOFF <g_n_s@hotmail.fr> | 2019-03-26 13:15:16 +0100 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-03-26 08:15:16 -0400 |
| commit | 630d0f213d54fe2dcce94b338a87373d64e3f716 (patch) | |
| tree | 00375af0ff6d8496fbcc635dfe9146356a27b27e /testing/asserts_test.ts | |
| parent | 4347148d507868d508782f154f2b49dbe6ea359b (diff) | |
Fix assertEquals for RegExp & Date (denoland/deno_std#305)
Original: https://github.com/denoland/deno_std/commit/e17364b91fb5360624e9529ed26cb3c6f0ca6a38
Diffstat (limited to 'testing/asserts_test.ts')
| -rw-r--r-- | testing/asserts_test.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testing/asserts_test.ts b/testing/asserts_test.ts index 6f82d4169..87e0335ac 100644 --- a/testing/asserts_test.ts +++ b/testing/asserts_test.ts @@ -36,6 +36,10 @@ test(function testingEqual() { { hello: "world", hi: { there: "everyone else" } } ) ); + assert(equal(/deno/, /deno/)); + assert(!equal(/deno/, /node/)); + assert(equal(new Date(2019, 0, 3), new Date(2019, 0, 3))); + assert(!equal(new Date(2019, 0, 3), new Date(2019, 1, 3))); }); test(function testingNotEquals() { |
