File tree 2 files changed +18
-1
lines changed
2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,18 @@ create or replace package body test_betwnstr as
17
17
18
18
procedure null_string is
19
19
begin
20
- ut.expect( betwnstr( null, 2, 5 ) ).to_( be_null );
20
+ ut.expect( betwnstr( null, 2, 5 ) ).to_( be_null() );
21
+ end;
22
+
23
+ procedure bad_params is
24
+ begin
25
+ ut.expect( betwnstr( '1234567', 'a', 'b' ) ).to_( be_null() );
26
+ end;
27
+
28
+ procedure bad_test
29
+ is
30
+ begin
31
+ ut.expect( betwnstr( '1234567', 0, 500 ) ).to_( equal('1') );
21
32
end;
22
33
23
34
procedure disabled_test is
Original file line number Diff line number Diff line change @@ -14,6 +14,12 @@ create or replace package test_betwnstr as
14
14
-- %test(Returns null for null input string value)
15
15
procedure null_string;
16
16
17
+ -- %test(A demo of test raising runtime exception)
18
+ procedure bad_params;
19
+
20
+ -- %test(A demo of failing test)
21
+ procedure bad_test;
22
+
17
23
-- %test(Demo of a disabled test)
18
24
-- %disabled
19
25
procedure disabled_test;
You can’t perform that action at this time.
0 commit comments