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

Skip to content

Commit 3aa872b

Browse files
committed
Updated docs/userguide/advanced_data_comparison.md
Removed TODO tag as any rework will introduce a more artificial logic ( adding new attributes , functions etc.)
1 parent 46fb8ff commit 3aa872b

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

docs/userguide/advanced_data_comparison.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Advanced data-comparison options are available for the [`equal`](expectations.md
2727
- `exclude(a_items varchar2)` - item or comma separated list of items to exclude
2828
- `include(a_items ut_varchar2_list)` - table of items to include
2929
- `exclude(a_items ut_varchar2_list)` - table of items to exclude
30-
- `unordered` - ignore order of data sets when comparing data. Default when comparing data-sets with `to_inclide` / `to_contain`
30+
- `unordered` - ignore order of data sets when comparing data. Default when comparing data-sets with `to_contain`
3131
- `join_by(a_columns varchar2)` - column or comma separated list of columns to join two cursors by
3232
- `join_by(a_columns ut_varchar2_list)` - table of columns to join two cursors by
3333
- `unordered_columns` / `uc` - ignore the ordering of columns / attributes in compared data-sets. Column/attribute names will be used to identify data to be compared and the position will be ignored.
@@ -130,7 +130,7 @@ This option can be useful in scenarios where you need to narrow-down the scope o
130130

131131
## Unordered
132132

133-
Unordered option allows for quick comparison of two cursors without need of ordering them in any way.
133+
Unordered option allows for quick comparison of two compound data types without need of ordering them in any way.
134134

135135
Result of such comparison will be limited to only information about row existing or not existing in given set without actual information about exact differences.
136136

@@ -169,9 +169,9 @@ Above test will result in two differences of one row extra and one row missing.
169169

170170
## Join By option
171171

172-
The `join_by` syntax enables comparison of unordered cursors by joining cursor data using specified columns.
172+
The `join_by` syntax enables comparison of unordered compound data types by joining data using specified columns.
173173

174-
You can join two cursors by defining join column(s) that will be used to uniquely identify and compare rows.
174+
You can join two compound data types by defining join column(s) that will be used to uniquely identify and compare data rows.
175175
With this option, framework is able to identify which rows are missing, which are extra and which are different without need to have both cursors uniformly ordered.
176176
When the specified join column(s) are not unique, join will partition set over rows with the same key and join on row number as well as given join key.
177177
The extra or missing rows will be presented to user as well as all non-matching rows.
@@ -237,7 +237,7 @@ Above test will indicate that in actual data-set
237237
```
238238

239239

240-
### Joining cursors using multiple columns
240+
### Joining using multiple columns
241241

242242
You can specify multiple columns in `join_by`
243243

@@ -257,10 +257,10 @@ begin
257257
ut.expect( l_actual ).to_equal( l_expected ).join_by('USERNAME, USER_ID');
258258
end;
259259
```
260-
261-
### Joining cursors using attributes of object in column list
262260

263-
`join_by` allows for joining cursor data by attributes of object from column list of the compared cursors.
261+
### Joining using attributes of object in column list
262+
263+
`join_by` allows for joining data by attributes of object from column list of the compared compound data types.
264264

265265
To reference attribute as PK, use slash symbol `/` to separate nested elements.
266266

@@ -302,7 +302,7 @@ create or replace package body test_join_by is
302302
end;
303303
/
304304

305-
```
305+
```
306306

307307
**Note**
308308
> `join_by` does not support joining on individual elements of nested table. You can still use data of the nested table as a PK value.

source/expectations/matchers/ut_have_count.tpb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ create or replace type body ut_have_count as
2626
overriding member function run_matcher(self in out nocopy ut_have_count, a_actual ut_data_value) return boolean is
2727
l_result boolean;
2828
begin
29-
--TODO : Refactor
3029
if a_actual is of(ut_data_value_refcursor) and ( treat (a_actual as ut_data_value_refcursor).compound_type != 'object') then
3130
l_result := ( self.expected = treat(a_actual as ut_data_value_refcursor).elements_count );
3231
else

0 commit comments

Comments
 (0)