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

Skip to content

Commit 10a6bf7

Browse files
committed
Update docs
1 parent ca64da8 commit 10a6bf7

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

docs/userguide/advanced_data_comparison.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ utPLSQL expectations incorporates advanced data comparison options when comparin
66
- object type
77
- nested table and varray
88

9-
Advanced data-comparison options are available for the [`equal`](expectations.md#equal) and [`include / contain`](expectations.md#include--contain) matcher.
9+
Advanced data-comparison options are available for the [`equal`](expectations.md#equal) and [`contain`](expectations.md#include--contain) matcher.
1010

1111
## Syntax
1212

@@ -164,7 +164,7 @@ Above test will result in two differences of one row extra and one row missing.
164164

165165
**Note**
166166

167-
> `include / contain` matcher is not considering order of compared data-sets. Using `unordered` makes no difference (it's default)
167+
> `contain` matcher is not considering order of compared data-sets. Using `unordered` makes no difference (it's default)
168168
169169

170170
## Join By option
@@ -375,10 +375,10 @@ end;
375375

376376
## Unordered columns / uc option
377377

378-
If you need to perform data comparison of cursors without strictly deending on column order in the returned result-set, use the `unordered_columns` option.
378+
If you need to perform data comparison of compound data types without strictly depending on column order in the returned result-set, use the `unordered_columns` option.
379379
Shortcut name `uc` is also available for that option.
380380

381-
Expectations that compare cursor data with `unordered_Columns` option, will not fail when columns are ordered differently.
381+
Expectations that compare compound data type data with `unordered_columns` option, will not fail when columns are ordered differently.
382382

383383
This option can be useful whn we have no control over the ordering of the column or the column order is not of importance from testing perspective.
384384

docs/userguide/expectations.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,9 +435,9 @@ To change the behavior of `NULL = NULL` comparison pass the `a_nulls_are_equal =
435435

436436
## contain
437437

438-
This matcher supports only cursor comparison. It check if the give set contain all values from given subset.
438+
This matcher supports only compound data comparison. It check if the give set contain all values from given subset.
439439

440-
When comparing data using `contain` matcher, the data-types of columns for compared cursors must be exactly the same.
440+
When comparing data using `contain` matcher, the data-types of columns for compared compound types must be exactly the same.
441441

442442
The matcher supports all advanced comparison options as `equal` like: `include` , `exclude`, `join_by` etc..
443443

@@ -716,7 +716,7 @@ utPLSQL is capable of comparing compound data-types including:
716716

717717
- Compound data can contain elements of any data-type. This includes blob, clob, object type, nested table, varray or even a nested-cursor within a cursor.
718718
- Attributes in nested table and array types are compared as **ordered lists of elements**. If order of attributes in nested table and array differ, expectation will fail.
719-
- Columns in cursors are compared as **ordered list of elements** by default. Use `unordered_columns` option when order of columns in cursor is not relevant
719+
- Columns in compound data are compared as **ordered list of elements** by default. Use `unordered_columns` option when order of columns in cursor is not relevant
720720
- Comparison of compound data is data-type aware. So a column `ID NUMBER` in a cursor is not the same as `ID VARCHAR2(100)`, even if they both hold the same numeric values.
721721
- Comparison of cursor columns containing `DATE` will only compare date part **and ignore time** by default. See [Comparing cursor data containing DATE fields](#comparing-cursor-data-containing-date-fields) to check how to enable date-time comparison in cursors.
722722
- Comparison of cursor returning `TIMESTAMP` **columns** against cursor returning `TIMESTAMP` **bind variables** requires variables to be casted to proper precision. This is an Oracle SQL - PLSQL compatibility issue and usage of CAST is the only known workaround for now. See [Comparing cursor data containing TIMESTAMP bind variables](#comparing-cursor-data-containing-timestamp-bind-variables) for examples.

0 commit comments

Comments
 (0)