Skip to content

Commit 7a1d9a2

Browse files
committed
added test for empty-coefficients case, with units
1 parent d22d8f1 commit 7a1d9a2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/math.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,10 @@ end
707707
c = 3
708708
@test @evalpoly(c, a0, a1) == 7
709709
@test @evalpoly(1, 2) == 2
710+
711+
isdefined(Main, :Furlongs) || @eval Main include("testhelpers/Furlongs.jl")
712+
using .Main.Furlongs
713+
@test @evalpoly(Furlong(2)) === evalpoly(Furlong(2), ()) === evalpoly(Furlong(2), Int[]) === 0
710714
end
711715

712716
@testset "evalpoly real" begin

0 commit comments

Comments
 (0)