Sha256: d73053a2ccb9cbbeefe55a77a3d078bea700c56a4f7186890c6a660fefc46ca5

Contents?: true

Size: 268 Bytes

Versions: 13

Compression:

Stored size: 268 Bytes

Contents

require 'facets/enumerable/frequency.rb'
require 'test/unit'

class Test_Enumerable_Frequency < Test::Unit::TestCase

  def test_frequency
    assert_equal( {'a'=>1,'b'=>1}, %w{a b}.frequency )
    assert_equal( {'tom'=>1,'boy'=>1}, %w{tom boy}.frequency )
  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/enumerable/test_frequency.rb
facets-2.8.3 test/core/enumerable/test_frequency.rb
facets-2.8.2 test/core/enumerable/test_frequency.rb
facets-2.8.1 test/core/enumerable/test_frequency.rb
facets-2.8.0 test/core/enumerable/test_frequency.rb
facets-2.7.0 test/core/enumerable/test_frequency.rb
facets-2.6.0 test/core/enumerable/test_frequency.rb
facets-2.4.3 test/core/enumerable/test_frequency.rb
facets-2.4.4 test/core/enumerable/test_frequency.rb
facets-2.5.0 test/core/enumerable/test_frequency.rb
facets-2.5.1 test/core/enumerable/test_frequency.rb
facets-2.4.5 test/core/enumerable/test_frequency.rb
facets-2.5.2 test/core/enumerable/test_frequency.rb