test/rbbt/util/test_tsv.rb in rbbt-util-2.1.0 vs test/rbbt/util/test_tsv.rb in rbbt-util-3.0.2

- old
+ new

@@ -176,9 +176,13 @@ TmpFile.with_file(content1) do |filename| tsv1 = TSV.new(File.open(filename), :key => "ValueA") assert !tsv1.case_insensitive assert tsv1.include? "A" end - + def test_create_array + tsv = TSV.new(%w(a b c)) + assert_equal %w(a b c).sort, tsv.keys.sort + assert_equal [[]] * tsv.keys.length, tsv.values + end end end