[Groonga-commit] groonga/fluent-plugin-droonga [master] test: add a test for empty queries

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Apr 9 17:22:00 JST 2013


Kouhei Sutou	2013-04-09 17:22:00 +0900 (Tue, 09 Apr 2013)

  New Revision: c68fc987da4fbf3f5be61b71452857cd370762d7
  https://github.com/groonga/fluent-plugin-droonga/commit/c68fc987da4fbf3f5be61b71452857cd370762d7

  Message:
    test: add a test for empty queries

  Modified files:
    test/plugin/test_handler_search.rb

  Modified: test/plugin/test_handler_search.rb (+6 -0)
===================================================================
--- test/plugin/test_handler_search.rb    2013-04-09 17:20:34 +0900 (b84680e)
+++ test/plugin/test_handler_search.rb    2013-04-09 17:22:00 +0900 (b48af7d)
@@ -50,4 +50,10 @@ class SearchHandlerTest < Test::Unit::TestCase
       assert_equal({}, @handler.search({}))
     end
   end
+
+  class QueriesTest < self
+    def test_empty
+      assert_equal({}, @handler.search({"queries" => []}))
+    end
+  end
 end
-------------- next part --------------
HTML����������������������������...
Download 



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