Skip to content

Commit 1bffc8a

Browse files
committed
fans: fix negation, add testset
1 parent f59b073 commit 1bffc8a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/PolyhedralGeometry/PolyhedralFan/standard_constructions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ end
433433
###############################################################################
434434

435435
function -(Sigma::PolyhedralFan)
436-
SigmaRays, SigmaLineality = first(rays_modulo_lineality(Sigma))
436+
SigmaRays, SigmaLineality = rays_modulo_lineality(Sigma)
437437
SigmaIncidence = maximal_cones(IncidenceMatrix, Sigma)
438438
return polyhedral_fan(
439439
coefficient_field(Sigma), SigmaIncidence, -SigmaRays, SigmaLineality

test/PolyhedralGeometry/polyhedral_fan.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ end
218218
sff1 = star_subdivision(ff, w1)
219219
@test number_of_maximal_cones(sff0) == 2
220220
@test number_of_maximal_cones(sff1) == 3
221+
end
221222

223+
@testset "Operations" begin
222224
f = normal_fan(cube(2))
223225
fMinus = -f
224226
@test n_rays(fMinus) == n_rays(f)

0 commit comments

Comments
 (0)