From 65a32f516e21fa5dadf054a1ff5445e9cd436669 Mon Sep 17 00:00:00 2001 From: lxvm Date: Tue, 2 Jan 2024 16:40:11 -0800 Subject: [PATCH] add test --- test/lib/lib.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/test/lib/lib.jl b/test/lib/lib.jl index 0886b9969..11e64cba9 100644 --- a/test/lib/lib.jl +++ b/test/lib/lib.jl @@ -4,5 +4,6 @@ t2 = (a=1, b=2) @test Zygote.accum(t1, t2) == (a = 2, b = 4, c = 3) @test_throws ArgumentError Zygote.accum(t2, t1) + @test Zygote.accum(fill(0.0), fill(0.0)) == fill(0.0) end end