Skip to content

Commit e019bb5

Browse files
committed
use throws_ok instead of is_empty
1 parent d96bfeb commit e019bb5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pgtap/ordering/sloan/edge_cases.pg

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,13 @@ END IF;
3838

3939
PREPARE q1 AS
4040
SELECT id, source, target, cost, reverse_cost
41-
FROM edges
42-
WHERE id > 18;
41+
FROM edges WHERE id > 18;
4342

4443
PREPARE r2 AS
4544
SELECT * FROM pgr_sloanOrdering('q1');
4645

4746
RETURN QUERY
48-
SELECT is_empty('r2', 'Graph with 0 edge and 0 vertex -> Empty row is returned');
47+
SELECT throws_ok('r2', iXX000:'Graph with 0 edge and 0 vertex -> Should throw');
4948

5049
-- 1 vertex test
5150

0 commit comments

Comments
 (0)