From dc395233a89dbc72abd2fa7738826114fa6f0f99 Mon Sep 17 00:00:00 2001 From: Lucas Jeub Date: Fri, 13 Dec 2024 10:06:10 +0100 Subject: [PATCH] add test for edge sorting --- python/tests/test_graphdb/test_graphdb.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/python/tests/test_graphdb/test_graphdb.py b/python/tests/test_graphdb/test_graphdb.py index de3d737ad..c6a404a8b 100644 --- a/python/tests/test_graphdb/test_graphdb.py +++ b/python/tests/test_graphdb/test_graphdb.py @@ -203,6 +203,17 @@ def check(g): check(g) +def test_edge_sorting(): + g = create_graph() + + @with_disk_graph + def check(g): + assert list(g.edges) == sorted(g.edges) + assert list(g.edges.explode()) == sorted(g.edges.explode()) + + check(g) + + def test_windowed_graph_degree(): g = create_graph()