]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/sql/Pg/t/public.first_agg.pg
LP#1470957: adjust a previous regression test
[Evergreen.git] / Open-ILS / src / sql / Pg / t / public.first_agg.pg
1 -- Load the TAP functions.
2 BEGIN;
3
4 -- Plan the tests.
5 SELECT plan(2);
6
7 -- Run the tests. 
8 SELECT is(
9     public.first_agg(1,2),
10     1,
11     'testing having two interger parameters; picking first parameter'
12 );
13
14 SELECT is(
15     public.first_agg('1'::text,'2'::text),
16     '1',
17     'testing having two string parameters; picking first parameter'
18 );
19
20 -- Finish the tests and clean up.
21 SELECT * FROM finish();
22 ROLLBACK;