Skip to content

Commit 12d403f

Browse files
committed
modify number of planned tests
1 parent c1593b1 commit 12d403f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

pgtap/ordering/sloan/edge_cases.pg

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
2020
BEGIN;
2121

2222
UPDATE edges SET cost = sign(cost), reverse_cost = sign(reverse_cost);
23-
SELECT CASE WHEN NOT min_version('4.0.0') THEN plan(1) ELSE plan(5) END;
23+
SELECT CASE WHEN NOT min_version('4.0.0') THEN plan(1) ELSE plan(6) END;
2424

2525

2626
CREATE OR REPLACE FUNCTION edge_cases()
@@ -85,8 +85,14 @@ RETURN QUERY
8585
SELECT set_eq('q5', $$VALUES (1, 3), (2, 7)$$, 'Should have both vertices');
8686
PERFORM todo_end();
8787

88-
-- 7 -- 3 -- 7 -- 11 ;3 vertices test (connected)
88+
-- 3 vertices test (connected)
8989

90+
PREPARE q6 AS
91+
SELECT *
92+
FROM pgr_sloanOrdering('SELECT id, source, target, cost, reverse_cost FROM edges WHERE id <= 2');
93+
94+
RETURN QUERY
95+
SELECT set_eq('q6', $$VALUES (6, 1), (7, 3), (4, 6)$$, 'Ordering of three connected vertices');
9096

9197
END;
9298
$BODY$

0 commit comments

Comments
 (0)