source: EcnlProtoTool/trunk/mruby-1.2.0/mrbgems/mruby-compiler/bintest/mrbc.rb@ 321

Last change on this file since 321 was 321, checked in by coas-nagasima, 7 years ago

文字コードを設定

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-ruby;charset=UTF-8
File size: 424 bytes
Line 
1require 'tempfile'
2
3assert('Compiling multiple files without new line in last line. #2361') do
4 a, b, out = Tempfile.new('a.rb'), Tempfile.new('b.rb'), Tempfile.new('out.mrb')
5 a.write('module A; end')
6 a.flush
7 b.write('module B; end')
8 b.flush
9 result = `#{cmd('mrbc')} -c -o #{out.path} #{a.path} #{b.path} 2>&1`
10 assert_equal "#{cmd('mrbc')}:#{a.path}:Syntax OK", result.chomp
11 assert_equal 0, $?.exitstatus
12end
Note: See TracBrowser for help on using the repository browser.