globals/expand_path/nonexistent.rb
tests/_examples/globals/expand_path/nonexistent.rb in the metorex repository.
# File.expand_path with non-existent path (manual normalization)
result = File.expand_path("/tmp/nonexistent_metorex_test/../foo/bar")
puts(result)
# With base dir
result2 = File.expand_path("baz", "/tmp/base")
puts(result2)
Output:
/tmp/foo/bar
/tmp/base/baz