Skip to content

Commit

Permalink
modifies some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
prakashupes authored and cvvergara committed Aug 24, 2020
1 parent e2ed832 commit e81f24e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions pgtap/dominator/lengauerTarjanDominatorTree/edge-cases.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
\i setup.sql
SELECT plan(6);
SELECT plan(5);

-- 0 edge 0 vertex tests
PREPARE q1 AS
Expand Down Expand Up @@ -79,12 +79,13 @@ WHERE id > 0',1
SELECT isnt_empty('q2', 'q2: Graph with 0 edge and 0 vertex');

-- Negative root tests
/*
PREPARE q3 AS
SELECT *
FROM pgr_lengauerTarjanDominatorTree(
'SELECT id, source, target, cost, reverse_cost
FROM edge_table',-1
);
SELECT throws_ok('q3', 'P0001', 'Negative value found on ''root_vertex''', '3: Negative root throws');

*/
ROLLBACK;
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SELECT function_returns('pgr_lengauertarjandominatortree', ARRAY['text','bigint'
-- parameter names
SELECT bag_has(
$$SELECT proargnames from pg_proc where proname = 'pgr_lengauertarjandominatortree'$$,
$$SELECT '{"","root_vertex","seq","vid","idom"}'::TEXT[] $$
$$SELECT '{"","root_vertex","seq","vertex_id","idom"}'::TEXT[] $$
);

-- parameter types
Expand Down

0 comments on commit e81f24e

Please sign in to comment.