Sha256: 488bf0b88df1cfde0fb07147d9f54b9a92de99ad79f7b961e40a4f6eb2df9759
Contents?: true
Size: 656 Bytes
Versions: 80
Compression:
Stored size: 656 Bytes
Contents
require File.join(File.expand_path(File.dirname(__FILE__)), '../..', 'test_helper.rb') require 'rbbt/tsv' require 'rbbt/tsv/change_id' class TestTSVChangeID < Test::Unit::TestCase FILE1=<<-EOF #: :sep=' ' #A B C a b c aa bb cc EOF FILE2=<<-EOF #: :sep=' ' #X Y Z x y z xx yy zz EOF IDENTIFIERS=<<-EOF #: :sep=' ' #A X a x aa xx EOF def tsv(text, options = {}) options = Misc.add_defaults options, :type => :list TSV.open StringIO.new(text), options end def setup @f1 = tsv(FILE1) @f2 = tsv(FILE2) @id = tsv(IDENTIFIERS) end def test_change_id @f1.identifiers = @id puts @f1.change_key "X" end end
Version data entries
80 entries across 80 versions & 1 rubygems