mirror of
https://bitbucket.org/bellord13/kit.git
synced 2026-11-13 19:06:11 +03:00
fix
This commit is contained in:
@@ -31,7 +31,7 @@ print_r($x);
|
||||
console.log(true, msg);
|
||||
return;
|
||||
}
|
||||
console.error(msg, value, need);
|
||||
console.error(msg, '-', 'value:', value, 'need:', need);
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -213,7 +213,14 @@ kit.ready(['collection'], function () {
|
||||
assertSame(x3.last(), 111, 'only last+');
|
||||
assertSame(x3.length, 1, 'only length');
|
||||
|
||||
x.
|
||||
|
||||
xOb = {a: 'a10', b: 'b11', 10: 101};
|
||||
x = new kit.Collection(xOb);
|
||||
x.set(11, 111);
|
||||
assertSame(x.indexKey(11), 3, 'indexKey (int)');
|
||||
assertSame(x.indexKey('11'), 3, 'indexKey (string)');
|
||||
assertSame(x.indexKey('111'), -1, 'indexKey (-1)');
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user