mirror of
https://github.com/flynx/serialize.js.git
synced 2026-07-10 03:00:57 +00:00
updated notes + minor tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
6fca53562b
commit
27d29b1070
19
test.js
19
test.js
@ -68,7 +68,6 @@ var setups = test.Setups({
|
|||||||
// XXX also test diffrerent quotations...
|
// XXX also test diffrerent quotations...
|
||||||
string: function(assert){
|
string: function(assert){
|
||||||
return ['"string"', json] },
|
return ['"string"', json] },
|
||||||
// XXX ERR this breaks...
|
|
||||||
'string-multiline': function(assert){
|
'string-multiline': function(assert){
|
||||||
return ['"string\\nstring\\nstring"', json] },
|
return ['"string\\nstring\\nstring"', json] },
|
||||||
|
|
||||||
@ -106,7 +105,6 @@ var setups = test.Setups({
|
|||||||
return ['Map([[<RECURSIVE[]>,"value"]])'] },
|
return ['Map([[<RECURSIVE[]>,"value"]])'] },
|
||||||
'map-recursive-value': function(assert){
|
'map-recursive-value': function(assert){
|
||||||
return ['Map([["key",<RECURSIVE[]>]])'] },
|
return ['Map([["key",<RECURSIVE[]>]])'] },
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
test.Modifiers({
|
test.Modifiers({
|
||||||
@ -184,12 +182,13 @@ test.Tests({
|
|||||||
})
|
})
|
||||||
|
|
||||||
test.Cases({
|
test.Cases({
|
||||||
/* XXX for some magical reason hese break as soon as we add [setup] to arguments...
|
//
|
||||||
'deep-copy-function': function(assert, [setup]){
|
// Format:
|
||||||
// XXX check function isolation...
|
// [
|
||||||
},
|
// [ "<extended-syntax>", "<JSON-syntax>" ],
|
||||||
//*/
|
// ...
|
||||||
|
// ]
|
||||||
|
//
|
||||||
// NOTE: these syntax variants are not output by .serialize(..) this it
|
// NOTE: these syntax variants are not output by .serialize(..) this it
|
||||||
// is less critical to test them in the main loop.
|
// is less critical to test them in the main loop.
|
||||||
// XXX though it would be nice to do so...
|
// XXX though it would be nice to do so...
|
||||||
@ -199,8 +198,8 @@ test.Cases({
|
|||||||
['123.', '123'],
|
['123.', '123'],
|
||||||
|
|
||||||
// string quotes...
|
// string quotes...
|
||||||
['"abc"', "'abc'"],
|
["'abc'", '"abc"'],
|
||||||
['"abc"', '`abc`'],
|
['`abc`', '"abc"'],
|
||||||
|
|
||||||
// arrays...
|
// arrays...
|
||||||
['[1,2,]', '[1,2]'],
|
['[1,2,]', '[1,2]'],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user