[Groonga-commit] ranguba/groonga-client at 31f76da [master] test: add a test for nil page case

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Feb 3 09:40:46 JST 2017


Kouhei Sutou	2017-02-03 09:40:46 +0900 (Fri, 03 Feb 2017)

  New Revision: 31f76dae97318cb3ff4dc1fa50e49b6204eaf7d8
  https://github.com/ranguba/groonga-client/commit/31f76dae97318cb3ff4dc1fa50e49b6204eaf7d8

  Message:
    test: add a test for nil page case

  Modified files:
    test/request/test-select.rb

  Modified: test/request/test-select.rb (+9 -0)
===================================================================
--- test/request/test-select.rb    2017-02-03 09:33:35 +0900 (f0c2114)
+++ test/request/test-select.rb    2017-02-03 09:40:46 +0900 (18441b8)
@@ -257,6 +257,15 @@ class TestRequestSelect < Test::Unit::TestCase
     end
 
     sub_test_case("page") do
+      test("nil") do
+        assert_equal({
+                       :table  => "posts",
+                       :offset => "0",
+                       :limit  => "10",
+                     },
+                     paginate(nil))
+      end
+
       test("0") do
         assert_equal({
                        :table  => "posts",
-------------- next part --------------
HTML����������������������������...
下載 



More information about the Groonga-commit mailing list
Back to archive index