Skip to content

Commit

Permalink
Merge pull request #396 from bedupako12mas/centrality-week8
Browse files Browse the repository at this point in the history
Centrality-Week8 (correction)
  • Loading branch information
bedupako12mas authored Jul 22, 2024
2 parents 4911058 + 9ad0063 commit 0c31d51
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions pgtap/metrics/types_check.pg
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@

/*PGR-GNU*****************************************************************

Copyright (c) 2018 pgRouting developers
Mail: project@pgrouting.org

------
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
********************************************************************PGR-GNU*/
BEGIN;

SELECT plan(5);

SELECT has_function('pgr_floydwarshall');
SELECT has_function('pgr_floydwarshall', ARRAY['text','boolean']);
SELECT function_returns('pgr_floydwarshall', ARRAY['text','boolean'],'setof record');

SELECT set_eq(
$$SELECT proargnames from pg_proc where proname = 'pgr_floydwarshall'$$,
$$VALUES
('{"","directed","start_vid","end_vid","agg_cost"}'::TEXT[])
$$);

SELECT set_eq(
$$SELECT proallargtypes from pg_proc where proname = 'pgr_floydwarshall'$$,
$$VALUES
('{25,16,20,20,701}'::OID[])
$$);

SELECT finish();
ROLLBACK;

0 comments on commit 0c31d51

Please sign in to comment.