[Groonga-commit] ranguba/rroonga at 0926b4f [master] Add a test for beginning of text anchor (\A) of Regexp for block style

Back to archive index

Masafumi Yokoyama null+****@clear*****
Wed Apr 8 13:58:13 JST 2015


Masafumi Yokoyama	2015-04-08 13:58:13 +0900 (Wed, 08 Apr 2015)

  New Revision: 0926b4f8bc26564dec8c40134855ddc8e8a4f1e1
  https://github.com/ranguba/rroonga/commit/0926b4f8bc26564dec8c40134855ddc8e8a4f1e1

  Merged 76a7f4b: Merge pull request #91 from ranguba/add-a-test-for-beginning-of-text-anchor-of-regexp

  Message:
    Add a test for beginning of text anchor (\A) of Regexp for block style
    
    GitHub: #70

  Modified files:
    test/test-expression-builder.rb

  Modified: test/test-expression-builder.rb (+8 -0)
===================================================================
--- test/test-expression-builder.rb    2015-04-08 13:05:05 +0900 (33f2bfa)
+++ test/test-expression-builder.rb    2015-04-08 13:58:13 +0900 (a20906e)
@@ -291,6 +291,14 @@ class ExpressionBuilderTest < Test::Unit::TestCase
         assert_equal([],
                      result.collect {|record| record.key.key}.sort)
       end
+
+      def test_beginning_of_text
+        result =****@users***** do |record|
+          record["name"] =~ /\Ash/
+        end
+        assert_equal(["suzuki"],
+                     result.collect {|record| record.key.key}.sort)
+      end
     end
 
     class QueryStringTest < self
-------------- next part --------------
HTML����������������������������...
Download 



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