about summary refs log tree commit homepage
path: root/test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test.rb')
-rwxr-xr-xtest.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test.rb b/test.rb
index fe00b36..75e46d6 100755
--- a/test.rb
+++ b/test.rb
@@ -2,6 +2,7 @@
 
 require 'test/unit'
 require 'mahoro'
+require 'pathname'
 
 class MahoroTestCase < Test::Unit::TestCase
 
@@ -19,6 +20,12 @@ class MahoroTestCase < Test::Unit::TestCase
                 assert_match(/(?:source|text)/, buf, "is source or text")
         end
 
+        def test_pathname
+                @m.flags = Mahoro::NONE
+                pn = Pathname.new('mahoro.c')
+                assert_c_text(@m.file(pn))
+        end
+
         def test_file
                 @m.flags = Mahoro::NONE
                 assert_c_text(@m.file('mahoro.c'))