[Groonga-commit] groonga/groonga-query-log at a1be985 [master] test: remove needless escape

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Jul 23 13:41:11 JST 2014


Kouhei Sutou	2014-07-23 13:41:11 +0900 (Wed, 23 Jul 2014)

  New Revision: a1be985292f322d0ec028de6d7d6c5f5d01af551
  https://github.com/groonga/groonga-query-log/commit/a1be985292f322d0ec028de6d7d6c5f5d01af551

  Message:
    test: remove needless escape

  Modified files:
    test/test-analyzer.rb

  Modified: test/test-analyzer.rb (+2 -2)
===================================================================
--- test/test-analyzer.rb    2014-07-23 13:40:23 +0900 (76544aa)
+++ test/test-analyzer.rb    2014-07-23 13:41:11 +0900 (2e14f37)
@@ -96,8 +96,8 @@ class AnalyzerTest < Test::Unit::TestCase
   end
 
   def normalize_json(json)
-    json = json.gsub(/(\"start_time\"):\d+/, "\\1:START_TIME")
-    json.gsub(/(\"last_time\"):\d+/, "\\1:LAST_TIME")
+    json = json.gsub(/("start_time"):\d+/, "\\1:START_TIME")
+    json.gsub(/("last_time"):\d+/, "\\1:LAST_TIME")
   end
 
   def expected_analyzed_query(file_name)
-------------- next part --------------
HTML����������������������������...
下載 



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