We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8d4d3c commit a372497Copy full SHA for a372497
test/loadsave.jl
@@ -111,6 +111,23 @@ add_saver(format"DUMMY", :Dummy)
111
end
112
113
114
+ fn2 = string(tempname(), ".dmy")
115
+ a |> save(fn2)
116
+
117
+ # Test for absolute paths
118
+ cd(dirname(fn2)) do
119
+ fnrel = basename(fn2)
120
+ f = query(fnrel)
121
+ @test isabspath(filename(f))
122
+ @test endswith(filename(f),fn2) # TravisOSX prepends "/private"
123
+ f = File(format"DUMMY", fnrel)
124
+ @test !(isabspath(filename(f)))
125
+ open(f) do s
126
+ @test isabspath(get(filename(s)))
127
+ @test endswith(get(filename(s)),fn2)
128
+ end
129
130
131
# Test IO
132
b = load(query(fn))
133
@test a == b
0 commit comments