We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93a6d0f commit eed5615Copy full SHA for eed5615
test/examples/multimaterial.jl
@@ -89,4 +89,4 @@ y = res.minimizer
89
90
x = TopOpt.tounit(reshape(y, ncells, nmats - 1))
91
sum(x[:, 2:3]) / size(x, 1) # the non-void elements as a ratio
92
-@test all(==(1), sum(x; dims=2))
+@test all(x -> isapprox(x, 1), sum(x; dims=2))
0 commit comments