summaryrefslogtreecommitdiff
path: root/test/psych/json
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-20 08:04:29 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-20 08:04:29 +0000
commit37d0c509b77cc99f793063ea111400eada192138 (patch)
tree5d6291caacafe7a295a8dd8ab34b7a248dbc21ce /test/psych/json
parent9d38d655e6d2b054d3476756748153d52f2fa947 (diff)
* test/psych/json/test_stream.rb (Psych::JSON::TestStream::test_list_to_json):
escape `]`. * test/psych/test_json_tree.rb (Psych::JSON::TestJSONTree#test_list_to_json): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/psych/json')
-rw-r--r--test/psych/json/test_stream.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/psych/json/test_stream.rb b/test/psych/json/test_stream.rb
index 4690ad2..b0c33e6 100644
--- a/test/psych/json/test_stream.rb
+++ b/test/psych/json/test_stream.rb
@@ -65,7 +65,7 @@ module Psych
@stream.push list
json = @io.string
- assert_match(/]$/, json)
+ assert_match(/\]$/, json)
assert_match(/^--- \[/, json)
assert_match(/["]one["]/, json)
assert_match(/["]two["]/, json)