Skip to content

Commit 35e9b7a

Browse files
committed
Tidy up further
1 parent bc480c2 commit 35e9b7a

File tree

3 files changed

+26
-45
lines changed

3 files changed

+26
-45
lines changed

test/copyable_task.jl

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,4 +229,30 @@
229229
@test consume(a) == 4
230230
end
231231
end
232+
@testset "Issue: PR-86 (DynamicPPL.jl/pull/261)" begin
233+
function f()
234+
t = Array{Int}(undef, 1)
235+
t[1] = 0
236+
for _ in 1:4000
237+
produce(t[1])
238+
t[1]
239+
t[1] = 1 + t[1]
240+
end
241+
end
242+
243+
ttask = TapedTask(nothing, f)
244+
245+
ex = try
246+
for _ in 1:999
247+
consume(ttask)
248+
consume(ttask)
249+
a = copy(ttask)
250+
consume(a)
251+
consume(a)
252+
end
253+
catch ex
254+
ex
255+
end
256+
@test ex === nothing
257+
end
232258
end

test/issues.jl

Lines changed: 0 additions & 44 deletions
This file was deleted.

test/runtests.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@ include("front_matter.jl")
55
@test JuliaFormatter.format(Libtask; verbose=false, overwrite=false)
66
end
77
include("copyable_task.jl")
8-
# include("issues.jl")
98
end

0 commit comments

Comments
 (0)