Skip to content

Commit 1d544e1

Browse files
test: sort adjacency graph before comparing
1 parent 98490f5 commit 1d544e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/structural_transformation/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ state = TearingState(pendulum)
2323
StructuralTransformations.find_solvables!(state)
2424
sss = state.structure
2525
@unpack graph, solvable_graph, var_to_diff = sss
26-
@test graph.fadjlist == [[1, 7], [2, 8], [3, 5, 9], [4, 6, 9], [5, 6]]
26+
@test sort(graph.fadjlist) == [[1, 7], [2, 8], [3, 5, 9], [4, 6, 9], [5, 6]]
2727
@test length(graph.badjlist) == 9
2828
@test ne(graph) == nnz(incidence_matrix(graph)) == 12
2929
@test nv(solvable_graph) == 9 + 5

0 commit comments

Comments
 (0)