test/rbbt/tsv/test_manipulate.rb in rbbt-util-5.42.0 vs test/rbbt/tsv/test_manipulate.rb in rbbt-util-5.43.0
- old
+ new
@@ -11,12 +11,10 @@
rowa a|aa b|BB C|CC
EOF
TmpFile.with_file(content) do |filename|
tsv = TSV.open(File.open(filename), :sep => /\s+/, :type => :double)
- Log.tsv tsv
- Log.tsv tsv.reorder("ValueA", nil, :zipped => true)
assert_equal ["A", "AA", "a", "aa"].sort, tsv.reorder("ValueA", nil, :zipped => true).keys.sort
end
end
@@ -127,10 +125,9 @@
TmpFile.with_file(content) do |filename|
tsv = TSV.open(File.open(filename), :type => :list, :sep => /\s/)
tsv = tsv.slice []
assert tsv.fields.empty?
TmpFile.with_file do |tmpfile|
- iii tsv.to_s
Open.write(tmpfile, tsv.to_s)
tsv = TSV.open tmpfile
assert tsv.fields.empty?
end
end