Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e9c4e80

Browse files
committed
Fixed test failure on 11g R2 - some issues with LIKE operator, long pattern, CLOB and escape char.
1 parent 8a26845 commit e9c4e80

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

test/core/test_suite_builder.pkb

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -548,8 +548,11 @@ create or replace package body test_suite_builder is
548548
l_actual := invoke_builder_for_annotations(l_annotations, 'SOME_PACKAGE');
549549
--Assert
550550
ut.expect(l_actual).to_be_like(
551-
'%<UT_LOGICAL_SUITE>' ||
552-
'%<WARNINGS><VARCHAR2>Annotation &quot;--\%context(A context)&quot; was ignored. Cannot find following &quot;--\%endcontext&quot;.</VARCHAR2></WARNINGS>' ||
551+
'%<WARNINGS><VARCHAR2>Annotation &quot;--\%context(A context)&quot; was ignored. Cannot find following &quot;--\%endcontext&quot;.</VARCHAR2></WARNINGS>%'
552+
,'\'
553+
);
554+
ut.expect(l_actual).to_be_like(
555+
'<UT_LOGICAL_SUITE>' ||
553556
'%<ITEMS>' ||
554557
'<UT_SUITE_ITEM>' ||
555558
'%<NAME>suite_level_test</NAME><DESCRIPTION>In suite</DESCRIPTION><PATH>some_package.suite_level_test</PATH>' ||
@@ -564,7 +567,6 @@ create or replace package body test_suite_builder is
564567
'%</BEFORE_ALL_LIST>' ||
565568
'<AFTER_ALL_LIST/>' ||
566569
'</UT_LOGICAL_SUITE>'
567-
,'\'
568570
);
569571
end;
570572

@@ -587,8 +589,11 @@ create or replace package body test_suite_builder is
587589
l_actual := invoke_builder_for_annotations(l_annotations, 'SOME_PACKAGE');
588590
--Assert
589591
ut.expect(l_actual).to_be_like(
590-
'%<UT_LOGICAL_SUITE>' ||
591-
'%<WARNINGS><VARCHAR2>Annotation &quot;--\%endcontext&quot; was ignored. Cannot find preceding &quot;--\%context&quot;.</VARCHAR2></WARNINGS>' ||
592+
'%<WARNINGS><VARCHAR2>Annotation &quot;--\%endcontext&quot; was ignored. Cannot find preceding &quot;--\%context&quot;.</VARCHAR2></WARNINGS>%'
593+
,'\'
594+
);
595+
ut.expect(l_actual).to_be_like(
596+
'<UT_LOGICAL_SUITE>' ||
592597
'%<ITEMS>' ||
593598
'<UT_SUITE_ITEM>' ||
594599
'%<NAME>context_1</NAME><DESCRIPTION>A context</DESCRIPTION><PATH>some_package.context_1</PATH>' ||
@@ -611,7 +616,6 @@ create or replace package body test_suite_builder is
611616
'%</BEFORE_ALL_LIST>' ||
612617
'<AFTER_ALL_LIST/>' ||
613618
'</UT_LOGICAL_SUITE>'
614-
,'\'
615619
);
616620
end;
617621

0 commit comments

Comments
 (0)