Skip to content

Commit

Permalink
Fix some nesting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
vpzomtrrfrt committed Sep 26, 2015
1 parent 4230fdb commit 3e63659
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DSON.djs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ such parse much str
but rly nca is "wow" or nca is "many"
rly nested bigger 0
nested -= 1
rly nca is "wow"
rly nested is 0
kh is true
wow
but
Expand Down
4 changes: 2 additions & 2 deletions test/test.djs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ plz describe with 'DSON', much
assert.equal('no', DSON.dogeify(false))
wow&
plz it with 'Nested object' much
assert.equal('such "obj" is such "foo" is "bar", "cat" is "not a doge" wow wow', DSON.dogeify({obj: {'foo': 'bar', 'cat': 'not a doge'}}))
assert.equal('such "obj" is such "foo" is "bar", "cat" is "not a doge" wow, "obj2" is such "pop" is "corn" wow wow', DSON.dogeify({obj: {'foo': 'bar', 'cat': 'not a doge'}, obj2: {'pop': 'corn'}}))
wow&
plz it with 'Nested array' much
assert.equal('so so "THIS" also "IS" and "DOGESCRIPT" many and so 0 also 1 and 2 many many', DSON.dogeify([['THIS', 'IS', 'DOGESCRIPT'], [0,1,2]]))
Expand Down Expand Up @@ -54,7 +54,7 @@ plz describe with 'DSON', much
assert.equal(DSON.parse('no'), false)
wow&
plz it with 'Nested object' much
assert.deepEqual(DSON.parse('such "obj" is such "foo" is "bar", "cat" is "not a doge" wow wow'), {obj: {'foo': 'bar', 'cat': 'not a doge'}})
assert.deepEqual(DSON.parse('such "obj" is such "foo" is "bar", "cat" is "not a doge" wow, "obj2" is such "pop" is "corn" wow wow'), {obj: {'foo': 'bar', 'cat': 'not a doge'}, obj2: {'pop': 'corn'}})
wow&
plz it with 'Nested array' much
assert.deepEqual(DSON.parse('so so "THIS" also "IS" and "DOGESCRIPT" many and so 0 also 1 and 2 many many'), [['THIS', 'IS', 'DOGESCRIPT'], [0,1,2]])
Expand Down

0 comments on commit 3e63659

Please sign in to comment.