feat: change tests for getLastBookings
This commit is contained in:
parent
5528c2a83b
commit
147c3c35a4
1 changed files with 14 additions and 3 deletions
|
@ -23,17 +23,28 @@ END;
|
|||
|
||||
|
||||
--Prozedurtest getLastBookings:
|
||||
|
||||
DECLARE
|
||||
ids bookingIds;
|
||||
BEGIN
|
||||
--Test für die letzten 7 Monate:
|
||||
DBMS_OUTPUT.PUT_LINE('Letzten Buchungen:');
|
||||
getLastBookings(5);
|
||||
ids := getLastBookings(5);
|
||||
FOR id IN ids.FIRST..ids.LAST
|
||||
LOOP
|
||||
DBMS_OUTPUT.PUT_LINE(id);
|
||||
END LOOP
|
||||
--Output: 1-10
|
||||
END;
|
||||
DECLARE
|
||||
ids bookingIds;
|
||||
BEGIN
|
||||
--Test für die letzten 9 Monate:
|
||||
DBMS_OUTPUT.PUT_LINE('Letzten Buchungen:');
|
||||
getLastBookings(9);
|
||||
ids := getLastBookings(9);
|
||||
FOR id IN ids.FIRST..ids.LAST
|
||||
LOOP
|
||||
DBMS_OUTPUT.PUT_LINE(id);
|
||||
END LOOP
|
||||
--Output: 1-14
|
||||
END;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue