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

Version Path
rbbt-util-5.43.0 test/rbbt/association/test_item.rb
rbbt-util-5.42.0 test/rbbt/association/test_item.rb
rbbt-util-5.41.1 test/rbbt/association/test_item.rb
rbbt-util-5.41.0 test/rbbt/association/test_item.rb
rbbt-util-5.40.5 test/rbbt/association/test_item.rb
rbbt-util-5.40.4 test/rbbt/association/test_item.rb
rbbt-util-5.40.3 test/rbbt/association/test_item.rb
rbbt-util-5.40.0 test/rbbt/association/test_item.rb
rbbt-util-5.39.0 test/rbbt/association/test_item.rb
rbbt-util-5.38.1 test/rbbt/association/test_item.rb
rbbt-util-5.38.0 test/rbbt/association/test_item.rb
rbbt-util-5.37.16 test/rbbt/association/test_item.rb
rbbt-util-5.37.15 test/rbbt/association/test_item.rb
rbbt-util-5.37.14 test/rbbt/association/test_item.rb
rbbt-util-5.37.13 test/rbbt/association/test_item.rb
rbbt-util-5.37.12 test/rbbt/association/test_item.rb
rbbt-util-5.37.11 test/rbbt/association/test_item.rb
rbbt-util-5.37.10 test/rbbt/association/test_item.rb
rbbt-util-5.37.9 test/rbbt/association/test_item.rb
rbbt-util-5.37.8 test/rbbt/association/test_item.rb