mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
File::ALT_SEPARATOR is always defined (some string or nil).
This commit is contained in:
+1
-1
@@ -80,7 +80,7 @@ assert('File.join') do
|
||||
end
|
||||
|
||||
assert('File.realpath') do
|
||||
if File.const_defined?(:ALT_SEPARATOR) && File::ALT_SEPARATOR
|
||||
if File::ALT_SEPARATOR
|
||||
readme_path = File._getwd + File::ALT_SEPARATOR + "README.md"
|
||||
assert_equal readme_path, File.realpath("README.md")
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user