test/test_csv.rb in statsample-0.4.1 vs test/test_csv.rb in statsample-0.5.0

- old
+ new

@@ -1,14 +1,13 @@ $:.unshift(File.dirname(__FILE__)+'/../lib/') require 'statsample' - require 'tmpdir' +require 'tmpdir' require 'test/unit' class StatsampleCSVTestCase < Test::Unit::TestCase - def initialize(*args) + def setup @ds=Statsample::CSV.read(File.dirname(__FILE__)+"/test_csv.csv") - super - end + end def test_read assert_equal(6,@ds.cases) assert_equal(%w{id name age city a1},@ds.fields) id=[1,2,3,4,5,6].to_vector(:scale) name=["Alex","Claude","Peter","Franz","George","Fernand"].to_vector(:nominal) \ No newline at end of file