diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-04-09 10:20:22 +0900 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-04-09 10:20:22 +0900 |
| commit | 9e93759b999c4fca219b3682eaf7964fa65f3bf0 (patch) | |
| tree | a13e0e21e6980885b880b973ef0860e2d4a91442 /test/ruby | |
| parent | ab4a25e48e351962d0d183d474c8b6d394123be6 (diff) | |
Restore assertion that is not related mswin platform
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_file_exhaustive.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_file_exhaustive.rb b/test/ruby/test_file_exhaustive.rb index aed0a5d4dd..bd331d55d9 100644 --- a/test/ruby/test_file_exhaustive.rb +++ b/test/ruby/test_file_exhaustive.rb @@ -1278,9 +1278,9 @@ class TestFileExhaustive < Test::Unit::TestCase assert_equal(regular_file, File.dirname(regular_file, 0)) assert_equal(@dir, File.dirname(regular_file, 1)) assert_equal(File.dirname(@dir), File.dirname(regular_file, 2)) - return if /mswin/ =~ RUBY_PLATFORM # mswin allows rootdir and tmpdir are in different drives - assert_equal(rootdir, File.dirname(regular_file, regular_file.count('/'))) assert_raise(ArgumentError) {File.dirname(regular_file, -1)} + # mswin allows rootdir and tmpdir are in different drives + assert_equal(rootdir, File.dirname(regular_file, regular_file.count('/'))) unless /mswin/ =~ RUBY_PLATFORM end def test_dirname_encoding |
