This commit is contained in:
Gwenhael Le Moine 2022-01-26 16:15:12 +01:00
parent 0e7fbcc341
commit 212ef879f3
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
2 changed files with 3 additions and 1 deletions

View file

@ -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] != ' '

View file

@ -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