Skip to content

Commit 6e6d2e7

Browse files
committed
add test for one vertex
1 parent e019bb5 commit 6e6d2e7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pgtap/ordering/sloan/edge_cases.pg

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,13 @@ PREPARE r2 AS
4444
SELECT * FROM pgr_sloanOrdering('q1');
4545

4646
RETURN QUERY
47-
SELECT throws_ok('r2', iXX000:'Graph with 0 edge and 0 vertex -> Should throw');
47+
SELECT throws_ok('r2', XX000:'Graph with 0 edge and 0 vertex -> Should throw');
4848

49-
-- 1 vertex test
49+
-- 6 -> 6 (1 vertex test)
5050

5151
PREPARE q3 AS
52-
SELECT id, source, 6 AS target, cost, reverse_cost
53-
FROM edges
54-
WHERE id = 2;
52+
SELECT id, source, source AS target, cost, reverse_cost
53+
FROM edges WHERE id = 2;
5554

5655
RETURN QUERY
5756
SELECT set_eq('q3', $$VALUES (2, 6, 6, -1, 1)$$, 'q3: Graph with one vertex');

0 commit comments

Comments
 (0)