fix TODO
This commit is contained in:
parent
0e7fbcc341
commit
212ef879f3
2 changed files with 3 additions and 1 deletions
|
@ -27,7 +27,6 @@ module Rpl
|
|||
|
||||
regrouped_input = []
|
||||
splitted_input.each do |elt|
|
||||
# TODO: handle buried-in-elt « and » (surround by ' ' and re-split)
|
||||
if elt[0] == '«'
|
||||
opened_programs += 1
|
||||
elt.gsub!( '«', '« ') if elt.length > 1 && elt[1] != ' '
|
||||
|
|
|
@ -28,6 +28,9 @@ class TestParser < Test::Unit::TestCase
|
|||
|
||||
result = Rpl::Lang::Parser.new.parse_input( '" test "' )
|
||||
assert_equal [{ value: '" test "', type: :string }], result
|
||||
|
||||
result = Rpl::Lang::Parser.new.parse_input( '" « test » "' )
|
||||
assert_equal [{ value: '" test "', type: :string }], result
|
||||
end
|
||||
|
||||
def test_name
|
||||
|
|
Loading…
Reference in a new issue