[Groonga-commit] ranguba/chupa-text at 95d6b70 [master] Omit FNM_EXTGLOB test on Ruby 1.9

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Jan 3 15:49:51 JST 2014


Kouhei Sutou	2014-01-03 15:49:51 +0900 (Fri, 03 Jan 2014)

  New Revision: 95d6b7039802a3fd5196703372b01510db742e69
  https://github.com/ranguba/chupa-text/commit/95d6b7039802a3fd5196703372b01510db742e69

  Message:
    Omit FNM_EXTGLOB test on Ruby 1.9

  Modified files:
    test/test-decomposers.rb

  Modified: test/test-decomposers.rb (+9 -0)
===================================================================
--- test/test-decomposers.rb    2014-01-03 15:48:21 +0900 (674b847)
+++ test/test-decomposers.rb    2014-01-03 15:49:51 +0900 (80467e4)
@@ -37,6 +37,15 @@ class TestDecomposers < Test::Unit::TestCase
     end
 
     def test_glob
+      @configuration.decomposer.names = ["*sv"]
+      decomposers = create
+      assert_equal([CSVDecomposer], decomposers.collect(&:class))
+    end
+
+    def test_ext_glob
+      unless File.const_defined?(:FNM_EXTGLOB)
+        omit("File::FNM_EXTGLOB is required")
+      end
       @configuration.decomposer.names = ["{a,b,c}sv"]
       decomposers = create
       assert_equal([CSVDecomposer], decomposers.collect(&:class))
-------------- next part --------------
HTML����������������������������...
Download 



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