From 8f94475840ca6b2c8cc1d5d56f1385e28894696b Mon Sep 17 00:00:00 2001 From: Carsten Bauer Date: Tue, 20 Feb 2024 23:54:33 +0100 Subject: [PATCH] Update runtests.jl --- test/runtests.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/runtests.jl b/test/runtests.jl index ef32a6f..229ef28 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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) @@ -51,4 +51,7 @@ end @test r[] == 0 end @test r[] == 1 + + @test @fetch(3+3) == 6 + @test @fetchfrom(1, Threads.threadid()) == 1 end