Skip to content

Commit 8f94475

Browse files
authored
Update runtests.jl
1 parent 1e22260 commit 8f94475

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/runtests.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using Test, StableTasks
2-
using StableTasks: @spawn, @spawnat
2+
using StableTasks: @spawn, @spawnat, @fetch, @fetchfrom
33

44
@testset "Type stability" begin
55
@test 2 == @inferred fetch(@spawn 1 + 1)
@@ -51,4 +51,7 @@ end
5151
@test r[] == 0
5252
end
5353
@test r[] == 1
54+
55+
@test @fetch(3+3) == 6
56+
@test @fetchfrom(1, Threads.threadid()) == 1
5457
end

0 commit comments

Comments
 (0)