Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

put a trailing newline in test files

  • Loading branch information...
commit 8363cb848724b1e1aceec8685b60a4a7a41deb43 1 parent 774c78f
@kr authored
Showing with 37 additions and 37 deletions.
  1. +1 −1  t/encode-int.rb.exp
  2. +1 −1  t/encode-obj.rb.exp
  3. +1 −1  t/valid-0.json.exp
  4. +1 −1  t/valid-1.json.exp
  5. +1 −1  t/valid-alnum.json.exp
  6. +1 −1  t/valid-array-deep.json.exp
  7. +1 −1  t/valid-array-empty.json.exp
  8. +1 −1  t/valid-array-single.json.exp
  9. +1 −1  t/valid-backslash.json.exp
  10. +1 −1  t/valid-bignum.json.exp
  11. +1 −1  t/valid-comment.json.exp
  12. +1 −1  t/valid-comment2.json.exp
  13. +1 −1  t/valid-compact.json.exp
  14. +1 −1  t/valid-escape.json.exp
  15. +1 −1  t/valid-false.json.exp
  16. +1 −1  t/valid-frac-E-plus.json.exp
  17. +1 −1  t/valid-frac-e-minus.json.exp
  18. +1 −1  t/valid-frac.json.exp
  19. +1 −1  t/valid-hex.json.exp
  20. +1 −1  t/valid-integer.json.exp
  21. +1 −1  t/valid-json.json.exp
  22. +1 −1  t/valid-key.json.exp
  23. +1 −1  t/valid-null.json.exp
  24. +1 −1  t/valid-object-empty.json.exp
  25. +1 −1  t/valid-object-single.json.exp
  26. +1 −1  t/valid-punc.json.exp
  27. +1 −1  t/valid-quote.json.exp
  28. +1 −1  t/valid-quotes.json.exp
  29. +1 −1  t/valid-slash.json.exp
  30. +1 −1  t/valid-space.json.exp
  31. +1 −1  t/valid-spaced.json.exp
  32. +1 −1  t/valid-spaced2.json.exp
  33. +1 −1  t/valid-true.json.exp
  34. +1 −1  t/valid-url.json.exp
  35. +2 −2 test
  36. +1 −1  tested-on
View
2  t/encode-int.rb.exp
@@ -1 +1 @@
-[123]
+[123]
View
2  t/encode-obj.rb.exp
@@ -1 +1 @@
-{"a":1}
+{"a":1}
View
2  t/valid-0.json.exp
@@ -1 +1 @@
-[0]
+[0]
View
2  t/valid-1.json.exp
@@ -1 +1 @@
-[1]
+[1]
View
2  t/valid-alnum.json.exp
@@ -1 +1 @@
-["abcdefghijklmnopqrstuvwyzABCDEFGHIJKLMNOPQRSTUVWYZ0123456789"]
+["abcdefghijklmnopqrstuvwyzABCDEFGHIJKLMNOPQRSTUVWYZ0123456789"]
View
2  t/valid-array-deep.json.exp
@@ -1 +1 @@
-[[[[[[[[[[[[[[[[[[["Not too deep"]]]]]]]]]]]]]]]]]]]
+[[[[[[[[[[[[[[[[[[["Not too deep"]]]]]]]]]]]]]]]]]]]
View
2  t/valid-array-empty.json.exp
@@ -1 +1 @@
-[]
+[]
View
2  t/valid-array-single.json.exp
@@ -1 +1 @@
-["a"]
+["a"]
View
2  t/valid-backslash.json.exp
@@ -1 +1 @@
-["\\"]
+["\\"]
View
2  t/valid-bignum.json.exp
@@ -1 +1 @@
-[23456789012000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000]
+[23456789012000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000]
View
2  t/valid-comment.json.exp
@@ -1 +1 @@
-["// /* <!-- --"]
+["// /* <!-- --"]
View
2  t/valid-comment2.json.exp
@@ -1 +1 @@
-["# -- --> */"]
+["# -- --> */"]
View
2  t/valid-compact.json.exp
@@ -1 +1 @@
-[1,2,3,4,5,6,7]
+[1,2,3,4,5,6,7]
View
2  t/valid-escape.json.exp
@@ -1 +1 @@
-["\b\f\n\r\t"]
+["\b\f\n\r\t"]
View
2  t/valid-false.json.exp
@@ -1 +1 @@
-[false]
+[false]
View
2  t/valid-frac-E-plus.json.exp
@@ -1 +1 @@
-[1.23456789e+34]
+[1.23456789e+34]
View
2  t/valid-frac-e-minus.json.exp
@@ -1 +1 @@
-[1.23456789e-13]
+[1.23456789e-13]
View
2  t/valid-frac.json.exp
@@ -1 +1 @@
-[-9876.54321]
+[-9876.54321]
View
2  t/valid-hex.json.exp
@@ -1 +1 @@
-["$\u00a2\u20ac\u5712\ud834\udd1e"]
+["$\u00a2\u20ac\u5712\ud834\udd1e"]
View
2  t/valid-integer.json.exp
@@ -1 +1 @@
-[1234567890]
+[1234567890]
View
2  t/valid-json.json.exp
@@ -1 +1 @@
-["{\"object with 1 member\":[\"array with 1 element\"]}"]
+["{\"object with 1 member\":[\"array with 1 element\"]}"]
View
2  t/valid-key.json.exp
@@ -1 +1 @@
-{"/\\\"\ucafe\ubabe\uab98\ufcde\ubcda\uef4a\b\f\n\r\t`1~!@#$%^&*()_+-=[]{}|;:',./<>?":"A key can be any string"}
+{"/\\\"\ucafe\ubabe\uab98\ufcde\ubcda\uef4a\b\f\n\r\t`1~!@#$%^&*()_+-=[]{}|;:',./<>?":"A key can be any string"}
View
2  t/valid-null.json.exp
@@ -1 +1 @@
-[null]
+[null]
View
2  t/valid-object-empty.json.exp
@@ -1 +1 @@
-{}
+{}
View
2  t/valid-object-single.json.exp
@@ -1 +1 @@
-{"a":"b"}
+{"a":"b"}
View
2  t/valid-punc.json.exp
@@ -1 +1 @@
-["`1~!@#$%^&*()_+-={':[,]}|;.</>?"]
+["`1~!@#$%^&*()_+-={':[,]}|;.</>?"]
View
2  t/valid-quote.json.exp
@@ -1 +1 @@
-["\""]
+["\""]
View
2  t/valid-quotes.json.exp
@@ -1 +1 @@
-["&#34; \" %22 0x22 034 &#x22;"]
+["&#34; \" %22 0x22 034 &#x22;"]
View
2  t/valid-slash.json.exp
@@ -1 +1 @@
-["/"]
+["/"]
View
2  t/valid-space.json.exp
@@ -1 +1 @@
-[" "]
+[" "]
View
2  t/valid-spaced.json.exp
@@ -1 +1 @@
-{" s p a c e d ":[1,2,3,4,5,6,7]}
+{" s p a c e d ":[1,2,3,4,5,6,7]}
View
2  t/valid-spaced2.json.exp
@@ -1 +1 @@
-[{"a":"b"},0.5,98.6,99.44,1066,"rosebud"]
+[{"a":"b"},0.5,98.6,99.44,1066,"rosebud"]
View
2  t/valid-true.json.exp
@@ -1 +1 @@
-[true]
+[true]
View
2  t/valid-url.json.exp
@@ -1 +1 @@
-["http://www.JSON.org/"]
+["http://www.JSON.org/"]
View
4 test
@@ -5,11 +5,11 @@ set -e
: ${RUBY:=ruby}
enc() {
- $RUBY -r ./okjson -e 'print(OkJson.encode(eval($stdin.read)))'
+ $RUBY -r ./okjson -e 'puts(OkJson.encode(eval($stdin.read)))'
}
cycle() {
- $RUBY -r ./okjson -e 'print(OkJson.encode(OkJson.decode($stdin.read)))'
+ $RUBY -r ./okjson -e 'puts(OkJson.encode(OkJson.decode($stdin.read)))'
}
fs=$*
View
2  tested-on
@@ -1,4 +1,4 @@
-This commit was tested Fri Oct 21 16:37:55 PDT 2011
+This commit was tested Mon Feb 20 16:08:17 PST 2012
using the following ruby interpreters:
ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.2.0]
Please sign in to comment.
Something went wrong with that request. Please try again.