Skip to content

Commit

Permalink
TropicalGeometry: fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
YueRen committed Oct 20, 2023
1 parent 7071095 commit 612f191
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/TropicalGeometry/poly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
R,(x,y) = K["x","y"]
f = x+t*y+t^2
tropf = tropical_polynomial(f,nu)
@test collect(coefficients(tropf))==nu.([1,1,1])
@test collect(exponents(tropf))==[[1,0],[0,1],[0,0]]
@test issetequal(coefficients(tropf),tropical_semiring(nu).([0,1,2]))
@test issetequal(exponents(tropf),[[1,0],[0,1],[0,0]])
end
end

0 comments on commit 612f191

Please sign in to comment.