#! /usr/bin/env ruby
module Modulino
def modulino_function
return 0
end
end
if ARGV[0] == "-test"
require 'test/unit'
class ModulinoTest < Test::Unit::TestCase
include Modulino
def test_modulino_function
assert_equal(0, modulino_function)
end
end
else
puts "running"
end
#! /usr/bin/env ruby
def my_function
return 0
end
if ARGV[0] == "-test"
require 'test/unit'
class MyTest < Test::Unit::TestCase
def test_my_function
assert_equal(0, my_function)
end
end
else
puts "running rc=".my_function()
end