[Groonga-commit] groonga/groonga-query-log at 1eb203b [master] test: add a test for "_score = rand()"

Back to archive index

Kouhei Sutou null+****@clear*****
Mon May 30 19:00:54 JST 2016


Kouhei Sutou	2016-05-30 19:00:54 +0900 (Mon, 30 May 2016)

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

  Message:
    test: add a test for "_score = rand()"

  Modified files:
    test/test-response-comparer.rb

  Modified: test/test-response-comparer.rb (+5 -1)
===================================================================
--- test/test-response-comparer.rb    2016-05-30 18:50:09 +0900 (53c8d2b)
+++ test/test-response-comparer.rb    2016-05-30 19:00:54 +0900 (0a60afe)
@@ -1,4 +1,4 @@
-# Copyright (C) 2014-2015  Kouhei Sutou <kou �� clear-code.com>
+# Copyright (C) 2014-2016  Kouhei Sutou <kou �� clear-code.com>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -103,6 +103,10 @@ class ResponseComparerTest < Test::Unit::TestCase
           assert_true(random_score?("_score=rand()"))
         end
 
+        def test_with_spaces
+          assert_true(random_score?("_score = rand()"))
+        end
+
         private
         def random_score?(scorer)
           @command["scorer"] = scorer
-------------- next part --------------
HTML����������������������������...
다운로드 



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