Skip to content

Commit 7c4edc8

Browse files
InterdisciplinaryPhysicsTeamClaudMorpitmonticone
committed
Update test
Co-Authored-By: Claudio Moroni <[email protected]> Co-Authored-By: Pietro Monticone <[email protected]>
1 parent ad80e7b commit 7c4edc8

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

test/utilities.jl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,4 @@
22
const A = reshape(rand(1:9, 1000), 10, 10, 10)
33
carts_idxs = CartesianIndices(A)
44
vec_idxs = MultilayerGraphs.cartIndexTovecIndex.(carts_idxs, Ref(size(A)))
5-
@test all(getindex.(Ref(A), carts_idxs) .== getindex.(Ref(A), vec_idxs) )
6-
# Test directed simple graphicality
7-
sdg = SimpleDiGraph(10, 90)
8-
@test @inferred(isdigraphical(indegree(sdg), outdegree(sdg)))
9-
@test !@inferred(isdigraphical([1, 1, 1], [1, 1, 0]))
10-
@test @inferred(isdigraphical(Integer[], Integer[]))
5+
@test all(getindex.(Ref(A), carts_idxs) .== getindex.(Ref(A), vec_idxs))

0 commit comments

Comments
 (0)