[Groonga-commit] groonga/groonga-query-log [master] Remove needless group

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Dec 13 15:43:52 JST 2012


Kouhei Sutou	2012-12-13 15:43:52 +0900 (Thu, 13 Dec 2012)

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

  Log:
    Remove needless group

  Modified files:
    test/test-analyzer.rb

  Modified: test/test-analyzer.rb (+2 -2)
===================================================================
--- test/test-analyzer.rb    2012-12-13 15:43:28 +0900 (de1bafe)
+++ test/test-analyzer.rb    2012-12-13 15:43:52 +0900 (cda3591)
@@ -58,9 +58,9 @@ class AnalyzerTest < Test::Unit::TestCase
   def test_to_json
     actual_result = run_analyzer("--reporter", "json", @query_log_path)
 
-    actual_result = actual_result.gsub(/(\"start_time\"):(\d+)/,
+    actual_result = actual_result.gsub(/(\"start_time\"):\d+/,
                                        "\\1:START_TIME")
-    actual_result = actual_result.gsub(/(\"last_time\"):(\d+)/,
+    actual_result = actual_result.gsub(/(\"last_time\"):\d+/,
                                        "\\1:LAST_TIME")
     expected_result = expected_analyzed_query("json.expected")
     assert_equal(expected_result, actual_result)
-------------- next part --------------
HTML����������������������������...
Download 



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