diff options
Diffstat (limited to 'test.rb')
-rwxr-xr-x | test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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')) |