From 6e90140813bb7e066b18eea5a606cf8bd4998ab1 Mon Sep 17 00:00:00 2001 From: chriselrod Date: Wed, 23 Dec 2020 19:48:06 -0500 Subject: [PATCH] A test per day, and coverage will eventually be good. --- test/runtests.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/runtests.jl b/test/runtests.jl index e078d418..1bce5e82 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -659,6 +659,12 @@ end end @test tovector(@inferred(vm > vi2)) == (tovector(vm) .> tovector(vi2)) end + @testset "Lazymul" begin + # partially covered in memory + for i ∈ (-5, -1, 0, 1, 4, 8), j ∈ (-5, -1, 0, 1, 4, 8) + @test VectorizationBase.lazymul(StaticInt(i), StaticInt(j)) === VectorizationBase.lazymul_no_promote(StaticInt(i), StaticInt(j)) === StaticInt(i*j) + end + end end # ptr_A = pointer(A)