forked from utPLSQL/utPLSQL
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathut_bstr.pkb
More file actions
47 lines (39 loc) · 935 Bytes
/
Copy pathut_bstr.pkb
File metadata and controls
47 lines (39 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
CREATE OR REPLACE PACKAGE BODY ut_bstr
IS
PROCEDURE ut_setup
IS
BEGIN
DBMS_OUTPUT.PUT_LINE ('Ran bstr setup');
END;
PROCEDURE ut_teardown
IS
BEGIN
DBMS_OUTPUT.PUT_LINE ('Ran bstr teardown');
END;
PROCEDURE ut_BETWNSTR
IS
-- Verify and complete data types.
against_this VARCHAR2(2000);
check_this VARCHAR2(2000);
BEGIN
-- Define "control" operation for "normal"
against_this := 'cde';
-- Execute test code for "normal"
check_this :=
BETWNSTR (
STRING_IN => 'abcdefgh'
,
START_IN => 3
,
END_IN => 5
);
-- Assert success for "normal" by comparing the two values.
utAssert.eq (
'normal',
check_this,
against_this
);
-- End of test for "normal"
END ut_BETWNSTR;
END ut_bstr;
/