Skip to content

Commit 03ca797

Browse files
committed
Add printing test for unknown additive term
1 parent e9f2dc4 commit 03ca797

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/incidence.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ dependencies(row) = sort(rowvals(row) .=> nonzeros(row), by = first)
7676
@test dependencies(incidence.row) == []
7777
@test repr(incidence) == "Incidence(1.0)"
7878

79+
incidence = Incidence(Float64)
80+
@test repr(incidence) == "Incidence(a)"
81+
7982
incidence = Incidence(Float64, IncidenceValue[1.0])
8083
@test dependencies(incidence.row) == [1 => 1]
8184
@test repr(incidence) == "Incidence(a + t)"

0 commit comments

Comments
 (0)