mirror of
https://github.com/flynx/serialize.js.git
synced 2026-07-13 12:30:57 +00:00
found another bug...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
a03f493893
commit
0322edaed1
7
test.js
7
test.js
@ -35,9 +35,10 @@ var setups = test.Setups({
|
|||||||
|
|
||||||
'array-empty': function(assert){
|
'array-empty': function(assert){
|
||||||
return '[]' },
|
return '[]' },
|
||||||
// XXX BUG: trailing <empty> gets duplicated...
|
|
||||||
'array-sparse': function(assert){
|
'array-sparse': function(assert){
|
||||||
return '[<empty>,1,<empty>,<empty>,2,<empty>]' },
|
return '[<empty>,1,<empty>,<empty>,2,<empty>]' },
|
||||||
|
'array-recursive': function(assert){
|
||||||
|
return '[<RECURSIVE[]>]' },
|
||||||
|
|
||||||
'object-empty': function(assert){
|
'object-empty': function(assert){
|
||||||
return '{}' },
|
return '{}' },
|
||||||
@ -56,10 +57,14 @@ test.Modifiers({
|
|||||||
return `[${ setup }]` },
|
return `[${ setup }]` },
|
||||||
'object-stuffed': function(assert, setup){
|
'object-stuffed': function(assert, setup){
|
||||||
return `{"key":${ setup }}` },
|
return `{"key":${ setup }}` },
|
||||||
|
//* XXX need better indexing...
|
||||||
|
// .getItem(..) / .setItem(..) break on recursive structures
|
||||||
|
// in maps/sets...
|
||||||
'map-stuffed': function(assert, setup){
|
'map-stuffed': function(assert, setup){
|
||||||
return `Map([["key",${ setup }],[${ setup },"value"]])` },
|
return `Map([["key",${ setup }],[${ setup },"value"]])` },
|
||||||
'set-stuffed': function(assert, setup){
|
'set-stuffed': function(assert, setup){
|
||||||
return `Set([${ setup }])` },
|
return `Set([${ setup }])` },
|
||||||
|
//*/
|
||||||
})
|
})
|
||||||
|
|
||||||
test.Tests({
|
test.Tests({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user