https://github.com/JuliaLang/julia
Raw File
Tip revision: bb73f3489d837e3339fce2c1aab283d3b2e97a4c authored by Tony Kelman on 06 December 2015, 21:47:01 UTC
Tag v0.4.2
Tip revision: bb73f34
test_sourcepath.jl
# This file is a part of Julia. License is MIT: http://julialang.org/license

# source path in tasks
path = Base.source_path()::ByteString # this variable is leaked to the source script
@test endswith(path, joinpath("test","test_sourcepath.jl"))
@test yieldto(@task Base.source_path()) == path
@test isabspath(@__FILE__)
back to top