Kouhei Sutou
null+****@clear*****
Sun Jan 28 23:43:28 JST 2018
Kouhei Sutou 2018-01-28 23:43:28 +0900 (Sun, 28 Jan 2018) New Revision: cbb6a14118d765697f2bc9b64e9bbbdf662f1444 https://github.com/ranguba/rroonga/commit/cbb6a14118d765697f2bc9b64e9bbbdf662f1444 Message: test: follow negative offset spec change in Groonga Modified files: test/test-table-offset-and-limit.rb Modified: test/test-table-offset-and-limit.rb (+3 -1) =================================================================== --- test/test-table-offset-and-limit.rb 2018-01-28 23:22:01 +0900 (006cbcd5) +++ test/test-table-offset-and-limit.rb 2018-01-28 23:43:28 +0900 (0146cd6e) @@ -27,8 +27,10 @@ module TestOffsetAndLimitSupport assert_equal(((200 - 1)...200).to_a, ids(:offset => -1)) assert_equal(((200 - 32)...200).to_a, ids(:offset => -32)) assert_equal(((200 - 100)...200).to_a, ids(:offset => -100)) + assert_equal(((200 - 100)...101).to_a, ids(:offset => -199)) + assert_equal(((200 - 100)...100).to_a, ids(:offset => -200)) assert_raise(Groonga::TooSmallOffset) do - ids(:offset => -101) + ids(:offset => -201) end end -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180128/f84852ca/attachment.htm