[Groonga-commit] groonga/grntest [master] test: add a test for convert a command including double quote

Back to archive index

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


Haruka Yoshihara	2012-06-06 15:13:57 +0900 (Wed, 06 Jun 2012)

  New Revision: d9cc7c72821103de067cff070ec0b9dafbdaf4a8

  Log:
    test: add a test for convert a command including double quote

  Modified files:
    test/test-executor.rb

  Modified: test/test-executor.rb (+12 -0)
===================================================================
--- test/test-executor.rb    2012-06-06 15:01:36 +0900 (67c6c4a)
+++ test/test-executor.rb    2012-06-06 15:13:57 +0900 (dd69147)
@@ -134,6 +134,18 @@ EOF
       assert_equal(expected_url, actual_url)
     end
 
+    def test_value_double_quote
+      command = "select Sites --filter 'uri @ \"ruby\"'"
+      arguments = {
+        "table" => "Sites",
+        "filter" => "uri @ \"ruby\"",
+      }
+      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