diff --git a/test/parallel/test-assert.js b/test/parallel/test-assert.js index 01945b223d67f8..c609244a8838f3 100644 --- a/test/parallel/test-assert.js +++ b/test/parallel/test-assert.js @@ -71,6 +71,21 @@ assert.throws(makeBlock(a.deepEqual, new Date(), new Date(2000, 3, 14)), a.AssertionError, 'deepEqual(new Date(), new Date(2000, 3, 14))'); +assert.throws(makeBlock( + a.notDeepEqual, + new Date(2000, 3, 14), + new Date(2000, 3, 14)), + a.AssertionError, + 'notDeepEqual(new Date(2000, 3, 14), new Date(2000, 3, 14))' +); + +assert.doesNotThrow(makeBlock( + a.notDeepEqual, + new Date(), + new Date(2000, 3, 14)), + 'notDeepEqual(new Date(), new Date(2000, 3, 14))' +); + // 7.3 assert.doesNotThrow(makeBlock(a.deepEqual, /a/, /a/)); assert.doesNotThrow(makeBlock(a.deepEqual, /a/g, /a/g));