added a new test...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-11-16 23:23:06 +03:00
parent fca5c0a976
commit 9b24acc4ee

10
test.js
View File

@ -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 = {