Sha256: 6c18b11f1898c03dfd81f75330e913d93e15c3b167c26d0d65b898691ad97d20
Contents?: true
Size: 522 Bytes
Versions: 822
Compression:
Stored size: 522 Bytes
Contents
require File.join(File.expand_path(File.dirname(__FILE__)), '../../', 'test_helper.rb') require 'rbbt/tsv' require 'rbbt/tsv/field_index' class TestTSVFieldIndex < Test::Unit::TestCase def test_field_index content =<<-EOF #Id ValueA ValueB ValueC rowA A|AA B|BB C|CC rowa a|aa b|BB C|CC EOF TmpFile.with_file(content) do |filename| tsv = TSV.open(File.open(filename), :sep => /\s+/, :type => :double) assert_equal ["rowA"], tsv.field_index("ValueA")["A"] end end end
Version data entries
822 entries across 822 versions & 1 rubygems
Version | Path |
---|---|
rbbt-util-5.6.12 | test/rbbt/tsv/test_field_index.rb |
rbbt-util-5.6.11 | test/rbbt/tsv/test_field_index.rb |