diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2019-11-24 15:23:28 +0100 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2019-11-24 15:23:28 +0100 |
commit | 54268a946b9bfde526d6d8c28bdb4c8f956eee32 (patch) | |
tree | 25e133d24be196a048c1a3ab99651e226a87ad98 /test/unit | |
parent | e3228fa76dd8f26ea7e240c67dcd90cea9106d11 (diff) | |
parent | b5b3430d4635682b767c44469e28a70fe234187e (diff) | |
download | coderay-fix-javascript-regexp.tar.gz |
Merge branch 'master' into fix-javascript-regexpfix-javascript-regexp
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/json_encoder.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/unit/json_encoder.rb b/test/unit/json_encoder.rb index 4e44a64..a3a8152 100644 --- a/test/unit/json_encoder.rb +++ b/test/unit/json_encoder.rb @@ -10,13 +10,13 @@ class JSONEncoderTest < Test::Unit::TestCase $:.delete File.dirname(__FILE__) json = CodeRay.scan('puts "Hello world!"', :ruby).json assert_equal [ - {"type"=>"text", "text"=>"puts", "kind"=>"ident"}, - {"type"=>"text", "text"=>" ", "kind"=>"space"}, - {"type"=>"block", "action"=>"open", "kind"=>"string"}, - {"type"=>"text", "text"=>"\"", "kind"=>"delimiter"}, - {"type"=>"text", "text"=>"Hello world!", "kind"=>"content"}, - {"type"=>"text", "text"=>"\"", "kind"=>"delimiter"}, - {"type"=>"block", "action"=>"close", "kind"=>"string"}, + { "type" => "text", "text" => "puts", "kind" => "ident" }, + { "type" => "text", "text" => " ", "kind" => "space" }, + { "type" => "block", "action" => "open", "kind" => "string" }, + { "type" => "text", "text" => "\"", "kind" => "delimiter" }, + { "type" => "text", "text" => "Hello world!", "kind" => "content" }, + { "type" => "text", "text" => "\"", "kind" => "delimiter" }, + { "type" => "block", "action" => "close", "kind" => "string" }, ], JSON.load(json) ensure for path in old_load_paths - $: |