[Groonga-commit] groonga/grntest [master] test: add a test for double quoted parameter

Back to archive index

null+****@clear***** null+****@clear*****
2012年 6月 6日 (水) 15:53:19 JST


Haruka Yoshihara	2012-06-06 15:53:19 +0900 (Wed, 06 Jun 2012)

  New Revision: 0c1bd3a492cbfed542f0d96dc50329a753f3e3b6

  Log:
    test: add a test for double quoted parameter

  Modified files:
    test/test-executor.rb

  Modified: test/test-executor.rb (+12 -0)
===================================================================
--- test/test-executor.rb    2012-06-06 15:52:34 +0900 (b342a4f)
+++ test/test-executor.rb    2012-06-06 15:53:19 +0900 (ef2e2e0)
@@ -146,6 +146,18 @@ EOF
       assert_equal(expected_url, actual_url)
     end
 
+    def test_value_double_quote
+      command = "select Sites --output_columns \"_key, uri\""
+      arguments = {
+        "table" => "Sites",
+        "output_columns" => "_key, uri",
+      }
+      actual_url = convert(command)
+      expected_url = build_url("select", arguments)
+
+      assert_equal(expected_url, actual_url)
+    end
+
     private
     def convert(command)
       converter = Groonga::Tester::CommandFormatConverter.new(command)




Groonga-commit メーリングリストの案内
Back to archive index