You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
at "UT3_DEVELOP.TEST_BETWNSTR.WIHTIN_TEST", line 5
1161
1153
```
1162
1154
1155
+
1156
+
## to_be_within_pct of
1157
+
1158
+
This matcher is created to determine wheter expected value is approximately equal or "close" to another value within percentage value of expected.
1159
+
1160
+
Matcher will allow to compare numbers.
1161
+
1162
+
When comparing a number the tolerance / distance can be expressed as another postive number or a percentage.
1163
+
1164
+
When comparing a two dates tolerance can be expressed in interval time either Day-To-Second or Year-To-Month.
1165
+
1166
+
Matcher for numbers will calculate a absolute distance between expected and actual and check whether that value is within a tolerance.
1167
+
1168
+
When comparing a date a distance is measured in interval, the check is done that actual value is within date range of expected taking into account interval plus and minus.
1169
+
1170
+
**Example 1.**
1171
+
```sql
1172
+
begin
1173
+
ut.expect(9).to_be_within_pct(10).of_(10);
1174
+
end;
1175
+
/
1176
+
```
1177
+
1178
+
1163
1179
## Comparing cursors, object types, nested tables and varrays
1164
1180
1165
1181
utPLSQL is capable of comparing compound data-types including:
0 commit comments