diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-09-13 11:38:06 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-09-13 11:38:06 +0900 |
| commit | 8b65e4b73c93f38df8960c698d9bcf34851b6764 (patch) | |
| tree | 514c7e3d3cd03fefb594c684968651afd98804fe | |
| parent | 4e158320000322f3601647332727b59a4d797cb7 (diff) | |
| download | mruby-8b65e4b73c93f38df8960c698d9bcf34851b6764.tar.gz mruby-8b65e4b73c93f38df8960c698d9bcf34851b6764.zip | |
Add test to ensure #5077
| -rw-r--r-- | mrbgems/mruby-io/test/file.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mrbgems/mruby-io/test/file.rb b/mrbgems/mruby-io/test/file.rb index ef4d7fcb1..c13850607 100644 --- a/mrbgems/mruby-io/test/file.rb +++ b/mrbgems/mruby-io/test/file.rb @@ -51,6 +51,8 @@ assert('File.extname') do assert_equal '', File.extname('foo/.bar') assert_equal '', File.extname('foo.txt/bar') assert_equal '', File.extname('.foo') + assert_equal '.rb', File.extname('.a.rb') + assert_equal '.', File.extname('foo.') end assert('File#flock') do |
