Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions docs/assertions.md
Original file line number Diff line number Diff line change
Expand Up @@ -1103,6 +1103,25 @@ function test_failure() {
```
:::

## assert_not_equals
> `assert_not_equals "expected" "actual"`

Reports an error if the two variables `expected` and `actual` are equal ignoring the special chars like ANSI Escape Sequences (colors) and other special chars like tabs and new lines.

- [assert_equals](#assert-equals) is the inverse of this assertion and takes the same arguments.

::: code-group
```bash [Example]
function test_success() {
assert_not_equals "foo" "bar"
}

function test_failure() {
assert_not_equals "foo" "foo"
}
```
:::

## assert_not_same
> `assert_not_same "expected" "actual"`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,15 @@ Reports an error if `expected` and `actual` are not equals.
- assert_files_not_equals is the inverse of this assertion and takes the same arguments.


## assert_not_equals
--------------
> `assert_not_equals "expected" "actual"`

Reports an error if the two variables `expected` and `actual` are equal ignoring the special chars like ANSI Escape Sequences (colors) and other special chars like tabs and new lines.

- assert_equals is the inverse of this assertion and takes the same arguments.


## assert_not_same
--------------
> `assert_not_same "expected" "actual"`
Expand Down Expand Up @@ -614,5 +623,3 @@ Reports an error if `command` completes in `threshold_ms` milliseconds or less.

Unambiguously reports an error message. Useful for reporting specific message
when testing situations not covered by any `assert_*` functions.


Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ Reports an error if `expected` and `actual` are not equals.
- assert_files_not_equals is the inverse of this assertion and takes the same arguments.


## assert_not_equals
--------------
> `assert_not_equals "expected" "actual"`

Reports an error if the two variables `expected` and `actual` are equal ignoring the special chars like ANSI Escape Sequences (colors) and other special chars like tabs and new lines.

- assert_equals is the inverse of this assertion and takes the same arguments.


## assert_files_not_equals
--------------
> `assert_files_not_equals "expected" "actual"`
Expand Down
Loading