summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFlorian Frank <flori@ping.de>2011-07-08 16:29:21 +0200
committerFlorian Frank <flori@ping.de>2011-07-08 16:32:06 +0200
commitf7f78896607b6f6226cdee4ae76de922d4583d32 (patch)
treefb8b18ce241984a125d881c29fd317a007358bd9 /tests
parentdcfa15b6a1179a29d4ee7b3ff16807fa9b1f96a4 (diff)
parent24f84d63beef15eafd2e59df3d809f1928774d00 (diff)
downloadjson-f7f78896607b6f6226cdee4ae76de922d4583d32.tar.gz
Merge branch 'master' of https://github.com/nobu/json into development
Conflicts: ext/json/ext/parser/parser.c
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_json.rb2
-rwxr-xr-xtests/test_json_addition.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_json.rb b/tests/test_json.rb
index 825a507..b367e90 100755
--- a/tests/test_json.rb
+++ b/tests/test_json.rb
@@ -150,7 +150,7 @@ class TC_JSON < Test::Unit::TestCase
assert_equal(@ary,
parse('[[1],["foo"],[3.14],[47.11e+2],[2718.0E-3],[null],[[1,-2,3]]'\
',[false],[true]]'))
- assert_equal(@ary, parse(%Q{ [ [1] , ["foo"] , [3.14] \t , [47.11e+2]
+ assert_equal(@ary, parse(%Q{ [ [1] , ["foo"] , [3.14] \t , [47.11e+2]\s
, [2718.0E-3 ],\r[ null] , [[1, -2, 3 ]], [false ],[ true]\n ] }))
end
diff --git a/tests/test_json_addition.rb b/tests/test_json_addition.rb
index c8bfb41..a8181e8 100755
--- a/tests/test_json_addition.rb
+++ b/tests/test_json_addition.rb
@@ -19,7 +19,7 @@ class TC_JSONAddition < Test::Unit::TestCase
def ==(other)
a == other.a
end
-
+
def self.json_create(object)
new(*object['args'])
end