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

Skip to content

Commit 05753e5

Browse files
committed
Improving expectations documentation
1 parent 535f682 commit 05753e5

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

docs/userguide/expectations.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -388,15 +388,15 @@ Finished in .009229 seconds
388388
1 tests, 0 failed, 0 errored, 0 disabled, 0 warning(s)
389389
```
390390

391-
For more details see documentation of the [`--%throws` annotation.](annotations.md#throws-annotation)
391+
For more details see documentation of the [`--%throws` annotation.](annotations.md#throws)
392392

393393

394394
## Matchers
395395

396396
You can choose different matchers to validate that your PL/SQL code is working as expected.
397397

398398

399-
## be_between
399+
### be_between
400400
Validates that the actual value is between the lower and upper bound.
401401

402402
Example:
@@ -452,7 +452,7 @@ SUCCESS
452452
Actual: 'Abb' (varchar2) was expected to be between: 'Aba' and 'Abc'
453453
```
454454

455-
## be_empty
455+
### be_empty
456456
Unary matcher that validates if the provided dataset is empty.
457457

458458
Can be used with `BLOB`,`CLOB`, `refcursor` or `nested table`/`varray` passed as `ANYDATA`
@@ -501,7 +501,7 @@ FAILURE
501501
at "anonymous block", line 9
502502
```
503503

504-
## be_false
504+
### be_false
505505
Unary matcher that validates if the provided value is false.
506506

507507
Usage:
@@ -529,7 +529,7 @@ SUCCESS
529529
Actual: TRUE (boolean) was expected not to be false
530530
```
531531

532-
## be_greater_or_equal
532+
### be_greater_or_equal
533533
Checks if the actual value is greater or equal than the expected.
534534

535535
Usage:
@@ -557,7 +557,7 @@ SUCCESS
557557
Actual: 2019-07-07T22:43:29 (date) was expected not to be greater or equal: 2019-07-08T22:43:29 (date)
558558
```
559559

560-
## be_greater_than
560+
### be_greater_than
561561
Checks if the actual value is greater than the expected.
562562

563563
Usage:
@@ -585,7 +585,7 @@ SUCCESS
585585
Actual: 0 (number) was expected not to be greater than: 1 (number)
586586
```
587587

588-
## be_less_or_equal
588+
### be_less_or_equal
589589
Checks if the actual value is less or equal than the expected.
590590

591591
Usage:
@@ -613,7 +613,7 @@ SUCCESS
613613
Actual: 4 (number) was expected not to be less or equal: 3 (number)
614614
```
615615

616-
## be_less_than
616+
### be_less_than
617617
Checks if the actual value is less than the expected.
618618

619619
Usage:
@@ -641,7 +641,7 @@ FAILURE
641641
at "anonymous block", line 5
642642
```
643643

644-
## be_like
644+
### be_like
645645
Validates that the actual value is like the expected expression.
646646

647647
Syntax:
@@ -679,7 +679,7 @@ SUCCESS
679679
Actual: 'Lorem_impsum' (varchar2) was expected not to be like: '%reM%'
680680
```
681681
682-
## be_not_null
682+
### be_not_null
683683
Unary matcher that validates if the actual value is not null.
684684
685685
Usage:
@@ -707,7 +707,7 @@ SUCCESS
707707
Actual: NULL (varchar2) was expected not to be not null
708708
```
709709
710-
## be_null
710+
### be_null
711711
Unary matcher that validates if the actual value is null.
712712
713713
Usage:
@@ -735,7 +735,7 @@ SUCCESS
735735
Actual: 0 (number) was expected not to be null
736736
```
737737
738-
## be_true
738+
### be_true
739739
Unary matcher that validates if the provided value is true.
740740
741741
Usage:
@@ -763,7 +763,7 @@ FAILURE
763763
at "anonymous block", line 5
764764
```
765765
766-
## have_count
766+
### have_count
767767
Unary matcher that validates if the provided dataset count is equal to expected value.
768768
769769
Can be used with `refcursor`, `json` or `table type`
@@ -799,7 +799,7 @@ FAILURE
799799
at "anonymous block", line 11
800800
```
801801
802-
## match
802+
### match
803803
Validates that the actual value is matching the expected regular expression.
804804
805805
Syntax:
@@ -833,7 +833,7 @@ FAILURE
833833
at "anonymous block", line 5
834834
```
835835
836-
## equal
836+
### equal
837837
The `equal` matcher is very restrictive. Test using this matcher succeeds only when the compared data-types are exactly the same.
838838
If you are comparing a `varchar2` to a `number`, it will fail even if the text contains the same numeric value as the number.
839839
The matcher will also fail when comparing a `timestamp` to a `timestamp with timezone` data-type etc.
@@ -919,7 +919,7 @@ FAILURE
919919
The `a_nulls_are_equal` parameter controls the behavior of a `null = null` comparison.<br>
920920
To change the behavior of `NULL = NULL` comparison pass the `a_nulls_are_equal => false` to the `equal` matcher.
921921
922-
## contain
922+
### contain
923923
924924
This matcher supports only compound data-types comparison. It check if the actual set contains all values of expected subset.
925925
@@ -1100,7 +1100,7 @@ SUCCESS
11001100
<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>
11011101
```
11021102
1103-
## to_be_within of
1103+
### to_be_within of
11041104
11051105
Determines whether expected value is within range (tolerance) from another value.
11061106
@@ -1181,7 +1181,7 @@ Failures:
11811181
```
11821182
11831183
1184-
## to_be_within_pct of
1184+
### to_be_within_pct of
11851185
11861186
Determines whether actual value is within percentage range of expected value.
11871187
The matcher only works with `number` data-type.
@@ -1603,7 +1603,7 @@ FAILURE
16031603
16041604
### Comparing cursor data containing DATE fields
16051605
1606-
!!! warning "Important note"
1606+
!!! warning "Important"
16071607
16081608
utPLSQL uses XMLType internally to represent rows of the cursor data. This is by far the most flexible method and allows comparison of cursors containing LONG, CLOB, BLOB, user defined types and even nested cursors.<br>
16091609
Due to the way Oracle handles DATE data type when converting from cursor data to XML, utPLSQL has no control over the DATE formatting.<br>

0 commit comments

Comments
 (0)