mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
add regression for #1572
This commit is contained in:
@@ -70,6 +70,7 @@ MRuby::Build.new do |conf|
|
||||
|
||||
# file separetor
|
||||
# conf.file_separator = '/'
|
||||
conf.enable_bintest = true
|
||||
end
|
||||
|
||||
# Define cross build settings
|
||||
|
||||
@@ -4,3 +4,10 @@ assert('regression for #1564') do
|
||||
o = `bin/mruby -e '<<-' 2>&1`
|
||||
assert_equal o, "-e:1:3: syntax error, unexpected tLSHFT\n"
|
||||
end
|
||||
|
||||
assert('regression for #1572') do
|
||||
system "echo 'p \"ok\"' > /tmp/1572.rb"
|
||||
system "bin/mrbc -g -o /tmp/1572.mrb /tmp/1572.rb"
|
||||
o = `bin/mruby -b /tmp/1572.mrb`.strip
|
||||
assert_equal o, '"ok"'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user