test/tc/noqae.rb in rio-0.3.6 vs test/tc/noqae.rb in rio-0.3.7
- old
+ new
@@ -3,13 +3,10 @@
Dir.chdir File.dirname(__FILE__)+'/../'
$:.unshift File.expand_path('../lib/')
end
require 'rio'
-require 'test/unit'
-require 'test/unit/testsuite'
-require 'extensions/symbol'
require 'tc/testcase'
class TC_RIO_noqae < Test::Unit::TestCase
@@tdir = rio(%w/qp noqae/)
@@once = false
def initialize(*args)
@@ -17,10 +14,10 @@
end
def assert!(a,msg="negative assertion")
assert((!(a)),msg)
end
- def smap(a) a.map( &:to_s ) end
+ def smap(a) a.map{|el| el.to_s} end
def setup
s_dir = ''
#$trace_states = true
unless @@once
@@once = true