[Groonga-commit] groonga/groonga-command-parser at 925600f [master] Add a test for bracket in parameter name

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Jul 9 21:55:57 JST 2015


Kouhei Sutou	2015-07-09 21:55:57 +0900 (Thu, 09 Jul 2015)

  New Revision: 925600f5ef7852c3e740f3f120f676b961207eec
  https://github.com/groonga/groonga-command-parser/commit/925600f5ef7852c3e740f3f120f676b961207eec

  Message:
    Add a test for bracket in parameter name

  Modified files:
    test/test-parser.rb

  Modified: test/test-parser.rb (+10 -0)
===================================================================
--- test/test-parser.rb    2015-07-09 21:43:31 +0900 (436cb7c)
+++ test/test-parser.rb    2015-07-09 21:55:57 +0900 (79bc64a)
@@ -49,6 +49,16 @@ class ParserTest < Test::Unit::TestCase
       assert_equal({:table => "Users"}, command.arguments)
     end
 
+    def test_bracket
+      path = "/d/select?table=Users&drilldown[name].keys=name"
+      command = Groonga::Command::Parser.parse(path)
+      assert_equal({
+                     :table => "Users",
+                     :"drilldown[name].keys" => "name",
+                   },
+                   command.arguments)
+    end
+
     def test_custom_prefix
       path = "/db1/select?table=Users"
       command = Groonga::Command::Parser.parse(path)
-------------- next part --------------
HTML����������������������������...
Download 



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