mirror of
https://github.com/flynx/serialize.js.git
synced 2026-07-10 11:10: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){
|
||||
return '[]' },
|
||||
// XXX BUG: trailing <empty> gets duplicated...
|
||||
'array-sparse': function(assert){
|
||||
return '[<empty>,1,<empty>,<empty>,2,<empty>]' },
|
||||
'array-recursive': function(assert){
|
||||
return '[<RECURSIVE[]>]' },
|
||||
|
||||
'object-empty': function(assert){
|
||||
return '{}' },
|
||||
@ -56,10 +57,14 @@ test.Modifiers({
|
||||
return `[${ setup }]` },
|
||||
'object-stuffed': function(assert, setup){
|
||||
return `{"key":${ setup }}` },
|
||||
//* XXX need better indexing...
|
||||
// .getItem(..) / .setItem(..) break on recursive structures
|
||||
// in maps/sets...
|
||||
'map-stuffed': function(assert, setup){
|
||||
return `Map([["key",${ setup }],[${ setup },"value"]])` },
|
||||
'set-stuffed': function(assert, setup){
|
||||
return `Set([${ setup }])` },
|
||||
//*/
|
||||
})
|
||||
|
||||
test.Tests({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user