Project

General

Profile

Bug #13444 ยป test.rb

test-case - dikderoy (Roman Bulgakov), 04/17/2017 09:02 PM

 
unless `touch test-#{RUBY_VERSION}`
raise 'Error'
end

begin
puts $?.success?
rescue StandardError => e
puts "rescued:#{e.message}"
end

s = `ls -l test-#{RUBY_VERSION}`
puts s.lines.length == 1 ? 'OK' : 'NOK'


    (1-1/1)