Skip to content

Commit 3a28640

Browse files
committed
Fix JSON-style hash key test
1 parent 434f9c6 commit 3a28640

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/test_rdoc_ruby_lex.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ def test_class_tokenize_hash_symbol
7878
tokens = RDoc::RubyLex.tokenize '{ class:"foo" }', nil
7979

8080
expected = [
81-
@TK::TkLBRACE .new( 0, 1, 0, '{'),
82-
@TK::TkSPACE .new( 1, 1, 1, ' '),
83-
@TK::TkIDENTIFIER.new( 2, 1, 2, 'class'),
84-
@TK::TkSYMBOL .new( 7, 1, 7, ':"foo"'),
85-
@TK::TkSPACE .new(13, 1, 13, ' '),
86-
@TK::TkRBRACE .new(14, 1, 14, '}'),
87-
@TK::TkNL .new(15, 1, 15, "\n"),
81+
@TK::TkLBRACE.new( 0, 1, 0, '{'),
82+
@TK::TkSPACE .new( 1, 1, 1, ' '),
83+
@TK::TkSYMBOL.new( 2, 1, 2, 'class:'),
84+
@TK::TkSTRING.new( 8, 1, 8, '"foo"'),
85+
@TK::TkSPACE .new(13, 1, 13, ' '),
86+
@TK::TkRBRACE.new(14, 1, 14, '}'),
87+
@TK::TkNL .new(15, 1, 15, "\n"),
8888
]
8989

9090
assert_equal expected, tokens

0 commit comments

Comments
 (0)