Skip to content

Commit

Permalink
[bdAstar] Added pgTAP test for issue1733
Browse files Browse the repository at this point in the history
  • Loading branch information
krashish8 committed Nov 17, 2020
1 parent 48a501b commit 5e7f7b9
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions pgtap/bdAstar/issue1733.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
\i setup.sql

SELECT plan(3);

SELECT is_empty(
'SELECT id, source, target, cost, reverse_cost, x1, y1, x2, y2
FROM edge_table
WHERE source = 100 OR target = 100',
'Vertex 100 does not exist in sample data'
);

PREPARE q1 AS
SELECT * FROM pgr_bdAstar(
'SELECT id, source, target, cost, reverse_cost, x1, y1, x2, y2
FROM edge_table',
2, 100,
true, heuristic := 2
);

SELECT * FROM lives_ok('q1');
SELECT * FROM is_empty('q1');


SELECT finish();

0 comments on commit 5e7f7b9

Please sign in to comment.