Revision 4aeb2d499686beab0e66978e8719357387dc1b25 authored by Fabian R Lischka on 26 April 2017, 16:28:44 UTC, committed by Tony Kelman on 26 April 2017, 16:28:44 UTC
* add docstring to base/Dates, base/Pkg * use jldoctest, backticks, clean up, typos * add module name on first line of docstring * add space after comma in tuples (as in 0.6) * add link to ISO 8601 wikipedia
1 parent 53161af
test_sourcepath.jl
# This file is a part of Julia. License is MIT: https://julialang.org/license
# source path in tasks
path = Base.source_path()::String # this variable is leaked to the source script
@test endswith(path, joinpath("test","test_sourcepath.jl"))
@test let ct = current_task()
yieldto(@task yieldto(ct, Base.source_path()))
end == path
@test let ct = current_task()
yieldto(@task schedule(ct, Base.source_path()))
end == path
@test let ct = current_task(), t = @task Base.source_path()
schedule(ct)
yieldto(t)
wait(t)
end == path
@test isabspath(@__FILE__)
Computing file changes ...