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

Skip to content

Commit f8008b1

Browse files
authored
Merge pull request #163 from Pazus/pritty_reporter_output
address #160
2 parents 8366919 + f29bbf5 commit f8008b1

13 files changed

Lines changed: 15 additions & 15 deletions

source/core/types/ut_assert_result.tpb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ create or replace type body ut_assert_result is
5959

6060
if self.result != ut_utils.tr_success then
6161
if self.actual_value_string is not null or self.actual_type is not null then
62-
l_actual_val_msg := ' expected (actual value): ';
62+
l_actual_val_msg := ' expected this: ';
6363
l_actual_val := self.actual_value_string || '(' || self.actual_type || ')';
6464
end if;
6565

66-
l_expected_msg := ' '||self.matcher_name || self.additional_info;
66+
l_expected_msg := ' ' || self.matcher_name || self.additional_info;
6767
if self.expected_value_string is not null or self.expected_type is not null then
68-
l_expected_msg := l_expected_msg || ' (expected value): ';
68+
l_expected_msg := l_expected_msg || ': ';
6969
l_expected_val := self.expected_value_string||'('||self.expected_type||')';
7070
if length(l_expected_msg) > length(l_actual_val_msg) then
7171
l_actual_val_msg := rpad(l_actual_val_msg , length(l_expected_msg));

source/expectations/matchers/ut_be_between.tpb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ create or replace type body ut_be_between is
22

33
member procedure init(self in out nocopy ut_be_between, a_lower_bound ut_data_value, a_upper_bound ut_data_value) is
44
begin
5-
self.name := lower($$plsql_unit);
5+
self.name := 'be between';
66
self.lower_bound := a_lower_bound;
77
self.upper_bound := a_upper_bound;
88
self.additional_info := 'between ' || a_lower_bound.to_string || ' and ' || a_upper_bound.to_string;

source/expectations/matchers/ut_be_false.tpb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ create or replace type body ut_be_false as
22

33
constructor function ut_be_false(self in out nocopy ut_be_false) return self as result is
44
begin
5-
self.name := lower($$plsql_unit);
5+
self.name := 'be false';
66
return;
77
end;
88

source/expectations/matchers/ut_be_greater_or_equal.tpb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ create or replace type body ut_be_greater_or_equal AS
22

33
member procedure init(self in out nocopy ut_be_greater_or_equal, a_expected ut_data_value) is
44
begin
5-
self.name := lower($$plsql_unit);
5+
self.name := 'be greater or equal';
66
self.expected := a_expected;
77
end;
88

source/expectations/matchers/ut_be_greater_than.tpb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ create or replace type body ut_be_greater_than AS
22

33
member procedure init(self in out nocopy ut_be_greater_than, a_expected ut_data_value) is
44
begin
5-
self.name := lower($$plsql_unit);
5+
self.name := 'be greater than';
66
self.expected := a_expected;
77
end;
88

source/expectations/matchers/ut_be_less_or_equal.tpb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ create or replace type body ut_be_less_or_equal AS
22

33
member procedure init(self in out nocopy ut_be_less_or_equal, a_expected ut_data_value) is
44
begin
5-
self.name := lower($$plsql_unit);
5+
self.name := 'be less or equal';
66
self.expected := a_expected;
77
end;
88

source/expectations/matchers/ut_be_less_than.tpb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ create or replace type body ut_be_less_than as
22

33
member procedure init(self in out nocopy ut_be_less_than, a_expected ut_data_value) is
44
begin
5-
self.name := lower($$plsql_unit);
5+
self.name := 'be less than';
66
self.expected := a_expected;
77
end;
88

source/expectations/matchers/ut_be_like.tpb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ create or replace type body ut_be_like as
88
self.additional_info := self.additional_info ||' escape '''||a_escape_char||'''';
99
end if;
1010
end if;
11-
self.name := lower($$plsql_unit);
11+
self.name := 'be like';
1212
self.mask := a_mask;
1313
self.escape_char := a_escape_char;
1414
return;

source/expectations/matchers/ut_be_not_null.tpb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ create or replace type body ut_be_not_null as
22

33
constructor function ut_be_not_null(self in out nocopy ut_be_not_null) return self as result is
44
begin
5-
self.name := lower($$plsql_unit);
5+
self.name := 'be not null';
66
return;
77
end;
88

source/expectations/matchers/ut_be_null.tpb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ create or replace type body ut_be_null as
22

33
constructor function ut_be_null(self in out nocopy ut_be_null) return self as result is
44
begin
5-
self.name := lower($$plsql_unit);
5+
self.name := 'be null';
66
return;
77
end;
88

0 commit comments

Comments
 (0)