Permalink
Browse files

test undefined and null values

  • Loading branch information...
fredericosilva committed Oct 26, 2012
1 parent a172dcf commit 7a94404f201bbef8e0431f16775bdcd2ddc27539
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/stringify.js
View
@@ -14,7 +14,9 @@ var str_identities = {
{ str: 'foo=1&bar=2', obj: {'foo' : '1', 'bar' : '2'}},
{ str: 'my%20weird%20field=q1!2%22\'w%245%267%2Fz8)%3F', obj: {'my weird field': "q1!2\"'w$5&7/z8)?"}},
{ str: 'foo%3Dbaz=bar', obj: {'foo=baz': 'bar'}},
- { str: 'foo=bar&bar=baz', obj: {foo: 'bar', bar: 'baz'}}
+ { str: 'foo=bar&bar=baz', obj: {foo: 'bar', bar: 'baz'}},
+ { str: 'foo=bar', obj: {foo: 'bar', bar: undefined}},
+ { str: 'foo=bar', obj: {foo: 'bar', bar: null}}
],
'escaping': [
{ str: 'foo=foo%20bar', obj: {foo: 'foo bar'}},

0 comments on commit 7a94404

Please sign in to comment.