test/tc/entary.rb in rio-0.3.6 vs test/tc/entary.rb in rio-0.3.7
- old
+ new
@@ -3,16 +3,13 @@
Dir.chdir File.dirname(__FILE__)+'/../'
$:.unshift File.expand_path('../lib/')
end
require 'rio'
-require 'test/unit'
-require 'test/unit/testsuite'
require 'tc/testcase'
class TC_RIO_entary < Test::Unit::TestCase
- require 'extensions/symbol'
- def smap(a) a.map( &:to_s ) end
+ def smap(a) a.map { |el| el.to_s } end
def tdir() rio(%w/qp entary/) end
def mkafile(*args)
file = rio(*args)
file < (0..1).map { |i| "L#{i}:#{file.to_s}\n" }
file