Skip to content

Commit 0ec7af3

Browse files
committed
test Par
1 parent 5643b69 commit 0ec7af3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/code.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,10 @@ test_repr(a, b) = @test repr(Base.remove_linenums!(a)) == repr(Base.remove_linen
121121

122122
test_repr(toexpr(MakeSparseArray(spvec)),
123123
:(SparseVector(10, $(spvec.nzind), [a])))
124-
125124
test_repr(toexpr(MakeTuple((a, b, a+b))),
126125
:((a,b,$(+)(a,b))))
126+
127+
@test Par{Multithreaded}([1,2],vcat)|>toexpr|>eval == [1,2]
128+
@test @elapsed(Par{Multithreaded}([:(sleep(.3)),:(sleep(.6))],vcat)|>toexpr|>eval) < 0.8
127129
end
128130

0 commit comments

Comments
 (0)