Skip to content

Commit

Permalink
Adds grep separators test
Browse files Browse the repository at this point in the history
  • Loading branch information
tomnomnom committed Sep 4, 2016
1 parent 2320f9c commit fe49bfd
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ func TestUngron(t *testing.T) {
{"testdata/one.gron", "testdata/one.json"},
{"testdata/two.gron", "testdata/two.json"},
{"testdata/three.gron", "testdata/three.json"},
{"testdata/grep-separators.gron", "testdata/grep-separators.json"},
}

for _, c := range cases {
Expand Down
5 changes: 5 additions & 0 deletions testdata/grep-separators.gron
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
json.contact.email = "[email protected]";
json.contact.twitter = "@TomNomNom";
--
json.likes[2] = "meat";
json.name = "Tom";
12 changes: 12 additions & 0 deletions testdata/grep-separators.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"contact": {
"email": "[email protected]",
"twitter": "@TomNomNom"
},
"likes": [
null,
null,
"meat"
],
"name": "Tom"
}

0 comments on commit fe49bfd

Please sign in to comment.