From 9b24acc4ee040f42216eb42cdf3e3c16b2941e20 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 16 Nov 2020 23:23:06 +0300 Subject: [PATCH] added a new test... Signed-off-by: Alex A. Naanou --- test.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test.js b/test.js index 3a5a5de..a359ed1 100755 --- a/test.js +++ b/test.js @@ -659,17 +659,21 @@ var cases = test.Cases({ assert.array( object.values(obj, 'x', true) .map(function(e){ return e.value }), - // XXX essert ignores the order here -- this should fail... + // XXX assert ignores the order here -- this should fail... [123, 321], '.values(.., true) ') assert( object.values(obj, 'x', function(){ return object.STOP })[0] == 321, - // XXX essert ignores the order here -- this should fail... + // XXX assert ignores the order here -- this should fail... '.values(.., func) ') assert( object.values(obj, 'x', function(){ return object.STOP }, true)[0].value == 321, - // XXX essert ignores the order here -- this should fail... + // XXX assert ignores the order here -- this should fail... '.values(.., func, true) ') + assert( + object.values(obj, 'x', function(){ return object.STOP(555) }, true)[0] == 555, + // XXX assert ignores the order here -- this should fail... + '.values(.., func, true) with explicit stop value') }, deepKeys: function(assert){ var a = {