Sha256: 30796620f926dacc0bd5b45b5bcf1e68642d3af937cedf9015f8a9e6cb223182
Contents?: true
Size: 527 Bytes
Versions: 861
Compression:
Stored size: 527 Bytes
Contents
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '../../..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'test/unit' require 'rbbt/tsv' require 'rbbt/association/item' class TestAssociationItem < Test::Unit::TestCase def test_incidence pairs = [[:A, :a], [:B, :b]].collect{|p| "#{p.first.to_s}~#{p.last.to_s}"} assert TSV === AssociationItem.incidence(pairs) assert_equal 2, AssociationItem.incidence(pairs).length assert_equal 2, AssociationItem.incidence(pairs).fields.length end end
Version data entries
861 entries across 861 versions & 1 rubygems