Sha256: 40f370d0f03b1adac25b8f8b9be7bbf8dd8c9fde0c2e7d9d1ee3a27a3cc236d4
Contents?: true
Size: 469 Bytes
Versions: 2
Compression:
Stored size: 469 Bytes
Contents
require 'helper' class TestData < Minitest::Test def test_data_is_empty_on_create topn = TopN.new(nil, maxkeys: 2) assert_equal({}, topn) end def test_data topn = TopN.new(nil, maxkeys: 2) topn[1] = 1 topn[2] = 2 topn[3] = 3 assert_equal([ [2, [2]], [3, [ 3 ]] ], topn.sort) end def test_keys topn = TopN.new(nil, maxkeys: 2) topn[1] = 1 topn[2] = 2 topn[3] = 3 assert_equal [2, 3], topn.keys.sort end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
top_n-1.1.1 | test/test_data.rb |
top_n-1.1.0 | test/test_data.rb |