Last change
on this file since 270 was 270, checked in by coas-nagasima, 7 years ago |
mruby版ECNLプロトタイピング・ツールを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-ruby
|
File size:
424 bytes
|
Line | |
---|
1 | require 'tempfile'
|
---|
2 |
|
---|
3 | assert('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
|
---|
12 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.