summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-bin-mruby/bintest
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-02-10 09:50:32 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-02-10 09:50:32 +0900
commitd7960bf2a92bf27cfce3d8871e44eb87d7ce55b3 (patch)
tree1781c0e7624aae34ddf3609e94dc2e48eea30d8e /mrbgems/mruby-bin-mruby/bintest
parent5519bd69bcd8b5c91b546d397371a42db796bf27 (diff)
parent05fb139d28c2814b2b19a65d0f83c72bc1644777 (diff)
downloadmruby-d7960bf2a92bf27cfce3d8871e44eb87d7ce55b3.tar.gz
mruby-d7960bf2a92bf27cfce3d8871e44eb87d7ce55b3.zip
resolve conflict in travis_config.rb
Diffstat (limited to 'mrbgems/mruby-bin-mruby/bintest')
-rw-r--r--mrbgems/mruby-bin-mruby/bintest/mruby.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/mrbgems/mruby-bin-mruby/bintest/mruby.rb b/mrbgems/mruby-bin-mruby/bintest/mruby.rb
new file mode 100644
index 000000000..2eb41d758
--- /dev/null
+++ b/mrbgems/mruby-bin-mruby/bintest/mruby.rb
@@ -0,0 +1,13 @@
+assert('regression for #1564') do
+ o = `bin/mruby -e '<<' 2>&1`
+ assert_equal o, "-e:1:2: syntax error, unexpected tLSHFT\n"
+ 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