update tests

This commit is contained in:
rolux 2013-02-18 12:43:59 +05:30
parent 290d97cbee
commit f44db6ff18

View file

@ -178,8 +178,8 @@ Ox.unserialize <f> Parses query parameters into an object
{a: '1', b: '2.3', c: '-4'}
> Ox.unserialize('a=foo&b=&c&a=bar')
{a: 'bar'}
> Ox.unserialize('a=[1,2]&b=true&n=1&o={"k":"v"}&s1="foo"&s2=bar', true)
{a: [1, 2], b: true, n: 1, o: {k: 'v'}, s1: 'foo', s2: 'bar'}
> Ox.unserialize('a=[1,2]&b=true&n=1.2&o={"k":"v"}&s1="foo"&s2=bar', true)
{a: [1, 2], b: true, n: 1.2, o: {k: 'v'}, s1: 'foo', s2: 'bar'}
@*/
Ox.unserialize = function(string, isJSON) {