@@ -17,6 +17,9 @@ create or replace package body test_tap_reporter as
1717 --%test(Disabled test)
1818 --%disabled(With \ and # in skip reason)
1919 procedure not_skipping_escapes;
20+
21+ --%test(Escaped Comments)
22+ procedure escaped_comments;
2023 end test_tap_escaping;
2124 ]';
2225
@@ -34,6 +37,11 @@ create or replace package body test_tap_reporter as
3437 ut.expect(10).to_equal(1);
3538 end not_skipping_escapes;
3639
40+ procedure escaped_comments as
41+ begin
42+ dbms_output.put_line('This \ and # should be escaped, but this not!!!');
43+ ut.expect(1).to_equal(1);
44+ end escaped_comments;
3745 end test_tap_escaping;
3846 ]';
3947
@@ -165,6 +173,20 @@ create or replace package body test_tap_reporter as
165173 end special_characters_in_deisabled_reason;
166174
167175
176+ procedure special_characters_in_comment as
177+ l_output_data ut3_develop.ut_varchar2_list;
178+ l_expected varchar2(32767);
179+ begin
180+ l_expected := q'[%ok - Escaped Comments%# This \\ and \# should be escaped, but this not!!!%]';
181+
182+ select *
183+ bulk collect into l_output_data
184+ from table(ut3_develop.ut.run('test_tap_escaping.escaped_comments',ut3_develop.ut_tap_reporter()));
185+
186+ ut.expect(ut3_tester_helper.main_helper.table_to_clob(l_output_data)).to_be_like(l_expected);
187+ end special_characters_in_comment;
188+
189+
168190 procedure drop_help_tests as
169191 pragma autonomous_transaction;
170192 begin
0 commit comments