Skip to content

Commit 591c67b

Browse files
committed
fix spaces in JSONEncoderTest
1 parent 88ca92c commit 591c67b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/unit/json_encoder.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ def test_json_output
1010
$:.delete File.dirname(__FILE__)
1111
json = CodeRay.scan('puts "Hello world!"', :ruby).json
1212
assert_equal [
13-
{"type"=>"text", "text"=>"puts", "kind"=>"ident"},
14-
{"type"=>"text", "text"=>" ", "kind"=>"space"},
15-
{"type"=>"block", "action"=>"open", "kind"=>"string"},
16-
{"type"=>"text", "text"=>"\"", "kind"=>"delimiter"},
17-
{"type"=>"text", "text"=>"Hello world!", "kind"=>"content"},
18-
{"type"=>"text", "text"=>"\"", "kind"=>"delimiter"},
19-
{"type"=>"block", "action"=>"close", "kind"=>"string"},
13+
{ "type" => "text", "text" => "puts", "kind" => "ident" },
14+
{ "type" => "text", "text" => " ", "kind" => "space" },
15+
{ "type" => "block", "action" => "open", "kind" => "string" },
16+
{ "type" => "text", "text" => "\"", "kind" => "delimiter" },
17+
{ "type" => "text", "text" => "Hello world!", "kind" => "content" },
18+
{ "type" => "text", "text" => "\"", "kind" => "delimiter" },
19+
{ "type" => "block", "action" => "close", "kind" => "string" },
2020
], JSON.load(json)
2121
ensure
2222
for path in old_load_paths - $:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy