Skip to content

Commit

Permalink
Update runtests.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
carstenbauer authored Feb 20, 2024
1 parent 1e22260 commit 8f94475
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Test, StableTasks
using StableTasks: @spawn, @spawnat
using StableTasks: @spawn, @spawnat, @fetch, @fetchfrom

@testset "Type stability" begin
@test 2 == @inferred fetch(@spawn 1 + 1)
Expand Down Expand Up @@ -51,4 +51,7 @@ end
@test r[] == 0
end
@test r[] == 1

@test @fetch(3+3) == 6
@test @fetchfrom(1, Threads.threadid()) == 1
end

0 comments on commit 8f94475

Please sign in to comment.