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

Skip to content

Commit 89cb0bc

Browse files
committed
Fixingtoo long names
1 parent 8ff4f6b commit 89cb0bc

3 files changed

Lines changed: 20 additions & 8 deletions

File tree

docs/userguide/expectations.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ The matrix below illustrates the data types supported by different matchers.
333333
| **be_like** | | | X | | | | | | X | | | | | | |
334334
| **be_empty** | X | | X | | | | | | | | | X | X | | X |
335335
| **have_count** | | | | | | | | | | | | X | X | | X |
336+
| **be_within().of_()** | | | | x | x | | | | | | | X | X | | X |
336337

337338

338339
# Expecting exceptions
@@ -1093,6 +1094,17 @@ SUCCESS
10931094
<ROW><UT_VARCHAR2_LIST>D</UT_VARCHAR2_LIST></ROW><ROW><UT_VARCHAR2_LIST>E</UT_VARCHAR2_LIST></ROW><ROW><UT_VARCHAR2_LIST>F</UT_VARCHAR2_LIST></ROW>
10941095
```
10951096
1097+
## to_be_within of
1098+
1099+
This fuzzy matcher is designed to allow user to compare a numbers and dates within distance of error.
1100+
1101+
We are allowing a numbers to be compared within a absolute distance from other number of within a percentage calculated based on expected value.
1102+
1103+
When comparing a date a distance is measured in interval.
1104+
1105+
1106+
1107+
10961108
10971109
## Comparing cursors, object types, nested tables and varrays
10981110

test/ut3_user/expectations/binary/test_to_be_within.pkb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ create or replace package body test_to_be_within is
8181
ut.expect(l_actual_message).to_be_like(l_expected_message);
8282
end;
8383

84-
procedure fail_for_ds_interval_not_within is
84+
procedure fail_for_number_not_within is
8585
l_actual_message varchar2(32767);
8686
l_expected_message varchar2(32767);
8787
begin
@@ -95,7 +95,7 @@ create or replace package body test_to_be_within is
9595
ut.expect(l_actual_message).to_be_like(l_expected_message);
9696
end;
9797

98-
procedure fail_for_custom_ds_interval_not_within is
98+
procedure fail_for_custom_ds_int is
9999
l_actual_message varchar2(32767);
100100
l_expected_message varchar2(32767);
101101
begin
@@ -109,7 +109,7 @@ create or replace package body test_to_be_within is
109109
ut.expect(l_actual_message).to_be_like(l_expected_message);
110110
end;
111111

112-
procedure fail_for_ym_interval_not_within is
112+
procedure fail_for_ym_int_not_within is
113113
l_actual_message varchar2(32767);
114114
l_expected_message varchar2(32767);
115115
begin
@@ -123,7 +123,7 @@ create or replace package body test_to_be_within is
123123
ut.expect(l_actual_message).to_be_like(l_expected_message);
124124
end;
125125

126-
procedure fail_for_custom_ym_interval_not_within is
126+
procedure fail_for_custom_ym_int is
127127
l_actual_message varchar2(32767);
128128
l_expected_message varchar2(32767);
129129
begin

test/ut3_user/expectations/binary/test_to_be_within.pks

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ create or replace package test_to_be_within is
1616
procedure fail_for_number_not_within;
1717

1818
--%test(Check failure message for inteval of 1 sec not within)
19-
procedure fail_for_ds_interval_not_within;
19+
procedure fail_for_ds_int_not_within;
2020

2121
--%test(Check failure message for custom ds interval not within)
22-
procedure fail_for_custom_ds_interval_not_within;
22+
procedure fail_for_custom_ds_int;
2323

2424
--%test(Check failure message for inteval of 1 month not within)
25-
procedure fail_for_ym_interval_not_within;
25+
procedure fail_for_ym_int_not_within;
2626

2727
--%test(Check failure message for custom ym interval not within)
28-
procedure fail_for_custom_ym_interval_not_within;
28+
procedure fail_for_custom_ym_int;
2929

3030
end;
3131
/

0 commit comments

Comments
 (0)