- Timestamp:
- Jan 21, 2018, 12:10:09 AM (6 years ago)
- Location:
- EcnlProtoTool/trunk/mruby-1.3.0
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/mruby-1.3.0/mrbgems/mruby-bin-mruby/bintest/mruby.rb
r321 r331 3 3 assert('regression for #1564') do 4 4 o = `#{cmd('mruby')} -e #{shellquote('<<')} 2>&1` 5 assert_ equal o, "-e:1:2: syntax error, unexpected tLSHFT\n"5 assert_include o, "-e:1:2: syntax error" 6 6 o = `#{cmd('mruby')} -e #{shellquote('<<-')} 2>&1` 7 assert_ equal o, "-e:1:3: syntax error, unexpected tLSHFT\n"7 assert_include o, "-e:1:3: syntax error" 8 8 end 9 9 … … 45 45 assert_equal "\"test\"\n\"fin\"\n", `#{cmd('mruby')} #{script.path}` 46 46 end 47 48 assert('garbage collecting built-in classes') do 49 script = Tempfile.new('test.rb') 50 51 script.write <<RUBY 52 NilClass = nil 53 GC.start 54 Array.dup 55 print nil.class.to_s 56 RUBY 57 script.flush 58 assert_equal "NilClass", `#{cmd('mruby')} #{script.path}` 59 assert_equal 0, $?.exitstatus 60 end
Note:
See TracChangeset
for help on using the changeset viewer.