Skip to content

Commit eed5615

Browse files
mohamed82008yijiangh
authored andcommitted
fix test
1 parent 93a6d0f commit eed5615

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/examples/multimaterial.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,4 @@ y = res.minimizer
8989

9090
x = TopOpt.tounit(reshape(y, ncells, nmats - 1))
9191
sum(x[:, 2:3]) / size(x, 1) # the non-void elements as a ratio
92-
@test all(==(1), sum(x; dims=2))
92+
@test all(x -> isapprox(x, 1), sum(x; dims=2))

0 commit comments

Comments
 (0)