Skip to content

Commit 2891cf3

Browse files
test: sort adjacency graph before comparing
1 parent 6a4cee3 commit 2891cf3

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
@@ -22,7 +22,7 @@ state = TearingState(pendulum)
2222
StructuralTransformations.find_solvables!(state)
2323
sss = state.structure
2424
@unpack graph, solvable_graph, var_to_diff = sss
25-
@test graph.fadjlist == [[1, 7], [2, 8], [3, 5, 9], [4, 6, 9], [5, 6]]
25+
@test sort(graph.fadjlist) == [[1, 7], [2, 8], [3, 5, 9], [4, 6, 9], [5, 6]]
2626
@test length(graph.badjlist) == 9
2727
@test ne(graph) == nnz(incidence_matrix(graph)) == 12
2828
@test nv(solvable_graph) == 9 + 5

0 commit comments

Comments
 (0)