Skip to content

Commit c6852d2

Browse files
committed
added test for empty-coefficients case, with units
1 parent 373a6a8 commit c6852d2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: test/math.jl

+4
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)