-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: use
value
and the .len field, for the left/right values, sho…
…wn in failing assertions (#22393)
- Loading branch information
Showing
5 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
vlib/v/tests/skip_unused/assert_with_extra_message_works_test.run.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
vlib/v/tests/skip_unused/assert_with_extra_message_works_test.vv:7: fn test_interpolation_with_assert_that_has_extra_message | ||
> assert 'abc$i' != 'abc77', my_failure_message(i) | ||
Left value: abc77 | ||
Right value: abc77 | ||
Left value (len: 5): `abc77` | ||
Right value (len: 5): `abc77` | ||
Message: the assert failed :-|, i: 77 | ||
|
4 changes: 2 additions & 2 deletions
4
vlib/v/tests/skip_unused/assert_with_extra_message_works_test.skip_unused.run.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
vlib/v/tests/skip_unused/assert_with_extra_message_works_test.vv:7: fn test_interpolation_with_assert_that_has_extra_message | ||
> assert 'abc$i' != 'abc77', my_failure_message(i) | ||
Left value: abc77 | ||
Right value: abc77 | ||
Left value (len: 5): `abc77` | ||
Right value (len: 5): `abc77` | ||
Message: the assert failed :-|, i: 77 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
vlib/v/tests/skip_unused/assert_works_test.vv:2: fn test_abc | ||
> assert 'abc' == 'xyz' | ||
Left value: abc | ||
Right value: xyz | ||
Left value (len: 3): `abc` | ||
Right value (len: 3): `xyz` | ||
|
4 changes: 2 additions & 2 deletions
4
vlib/v/tests/skip_unused/assert_works_test.skip_unused.run.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
vlib/v/tests/skip_unused/assert_works_test.vv:2: fn test_abc | ||
> assert 'abc' == 'xyz' | ||
Left value: abc | ||
Right value: xyz | ||
Left value (len: 3): `abc` | ||
Right value (len: 3): `xyz` | ||
|