From 0651ab591576566f5470d239436fa6d754a8de6f Mon Sep 17 00:00:00 2001 From: odow Date: Tue, 24 Sep 2024 14:59:09 +1200 Subject: [PATCH] Update --- test/rewrite_generic.jl | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/rewrite_generic.jl b/test/rewrite_generic.jl index 5594f7c..05fe615 100644 --- a/test/rewrite_generic.jl +++ b/test/rewrite_generic.jl @@ -417,6 +417,19 @@ function test_rewrite_ifelse() 2 * x end end + @test_rewrite begin + x = 2 + y = Float64[1.0] + if x < 1 + 1.0 + elseif length(y) == 2 + 2.0 + elseif isempty(y) + 3.0 + else + 4.0 + end + end return end