Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit591c67b

Browse files
committed
fix spaces in JSONEncoderTest
1 parent88ca92c commit591c67b

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
$:.deleteFile.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
forpathinold_load_paths - $:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp