Kouhei Sutou
null+****@clear*****
Fri Feb 10 16:07:24 JST 2017
Kouhei Sutou 2017-02-10 16:07:24 +0900 (Fri, 10 Feb 2017) New Revision: cbd37bdf92a54ef27a4923865f9c45aac9a9cc5a https://github.com/ranguba/rroonga/commit/cbd37bdf92a54ef27a4923865f9c45aac9a9cc5a Message: test: add missing option Modified files: test/test-index-cursor.rb Modified: test/test-index-cursor.rb (+6 -3) =================================================================== --- test/test-index-cursor.rb 2017-02-10 16:03:52 +0900 (55e67b6) +++ test/test-index-cursor.rb 2017-02-10 16:07:24 +0900 (fde0af5) @@ -67,7 +67,8 @@ class IndexCursorTest < Test::Unit::TestCase postings = cursor.collect do |posting| posting.to_hash end - assert_equal(expected_postings, postings) + assert_equal(expected_postings(:with_position => true), + postings) opened = true end end @@ -80,7 +81,8 @@ class IndexCursorTest < Test::Unit::TestCase @terms.open_cursor do |table_cursor| @content_index.open_cursor(table_cursor) do |cursor| postings = cursor.each.collect(&:to_hash) - assert_equal(expected_postings, postings) + assert_equal(expected_postings(:with_position => true), + postings) opened = true end end @@ -100,7 +102,8 @@ class IndexCursorTest < Test::Unit::TestCase end assert_equal([posting_object_ids.first] * posting_object_ids.size, posting_object_ids) - assert_equal(expected_postings, postings) + assert_equal(expected_postings(:with_position => true), + postings) opened = true end end -------------- next part -------------- HTML����������������������������... Descargar