Skip to content

Commit 2e399fd

Browse files
committed
Comments shouldn't escape special characters
1 parent a477d68 commit 2e399fd

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

source/reporters/ut_tap_reporter.tpb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ create or replace type body ut_tap_reporter is
1010

1111
member procedure print_comment(self in out nocopy ut_tap_reporter, a_comment clob) as
1212
begin
13-
self.print_clob(regexp_replace(self.escape_special_chars(a_comment), '^', '# ', 1, 0, 'm'));
13+
self.print_clob(regexp_replace(a_comment, '^', '# ', 1, 0, 'm'));
1414
end print_comment;
1515

1616
member function escape_special_chars(self in out nocopy ut_tap_reporter, a_string_to_escape clob) return clob as

test/ut3_user/reporters/test_tap_reporter.pkb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ create or replace package body test_tap_reporter as
3939

4040
procedure escaped_comments as
4141
begin
42-
dbms_output.put_line('This \ and # should be escaped, but this not!!!');
42+
dbms_output.put_line('This \ and # should not be escaped, and this not as well!!!');
4343
ut.expect(1).to_equal(1);
4444
end escaped_comments;
4545
end test_tap_escaping;
@@ -177,7 +177,7 @@ create or replace package body test_tap_reporter as
177177
l_output_data ut3_develop.ut_varchar2_list;
178178
l_expected varchar2(32767);
179179
begin
180-
l_expected := q'[%ok - Escaped Comments%# This \\ and \# should be escaped, but this not!!!%]';
180+
l_expected := q'[%ok - Escaped Comments%# This \ and # should not be escaped, and this not as well!!!%]';
181181

182182
select *
183183
bulk collect into l_output_data

test/ut3_user/reporters/test_tap_reporter.pks

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ create or replace package test_tap_reporter as
3333
--%test(Disabled Test with special characters in disable reason)
3434
procedure special_characters_in_deisabled_reason;
3535

36-
--%test(Escape special characters in comment)
36+
--%test(Don't escape special characters in comment)
3737
procedure special_characters_in_comment;
3838

3939

0 commit comments

Comments
 (0)