Skip to content

Commit

Permalink
improve "sequential" testset
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Jul 17, 2023
1 parent eee264b commit 17ab756
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/toplevel/test_virtualprocess.jl
Original file line number Diff line number Diff line change
Expand Up @@ -868,22 +868,22 @@ end
end

@testset "sequential" begin
let
res = @analyze_toplevel begin
let res = @analyze_toplevel begin
foo(1:1000)

foo(a) = length(a)
end
@test only(res.res.inference_error_reports) isa UndefVarErrorReport
end

let
res = @analyze_toplevel begin
foo(a) = length(a)
foo("julia") # should not error
let res = @analyze_toplevel begin
usefunc(a) = sin(func_impl(a))

foo(a) = sum(a)
foo(1:1000) # should not error too
func_impl(a) = length(a)
usefunc("julia") # should not error

func_impl(a) = a
usefunc(42) # should not error too
end
@test isempty(res.res.inference_error_reports)
end
Expand Down

0 comments on commit 17ab756

Please sign in to comment.