Commit Graph

12 Commits (1419-fail-assertions)

Author SHA1 Message Date
Bracken 685783ac52
Clarify error message for incorrect use of IsIncreasing et al
Because maps are collections but not ordered.

Co-authored-by: Olivier Mengué <dolmen@cpan.org>
2024-02-24 14:55:03 +00:00
Bracken Dawson 8b4aef060a
IsIncreasing et al can return false w/out failing
If you passed a non-collection to IsIncreasing or any of its compatriots then the assertion would return false without failing the test.
2024-02-24 14:55:03 +00:00
Ilia Kravets c29de71342 add tests for correct msgAndArgs forwarding
len(msgAndArgs)>1 should lead to fmt.Sprintf()
2022-02-10 20:09:05 +10:00
Menno ab6dc32628 fix linting errors in /assert package 2021-08-24 21:55:23 +10:00
alexpantyukhin cf221cc875 add tests and fix message 2020-08-14 20:45:51 +10:00
alexpantyukhin a9284e66a9 add assertion order 2020-08-14 20:45:51 +10:00
alexpantyukhin 6be346c1f1 rename order files to compare files 2020-03-09 08:00:09 +11:00
Alexander Pantyukhin 2ca25e3fac fix for assertions 2020-03-06 19:44:08 +11:00
Alexander Pantyukhin ec73f449b3 add new tests 2020-03-06 19:44:08 +11:00
Alexander Pantyukhin ad53dbbf0a put constants instead of values. 2020-03-06 19:44:08 +11:00
alexpantyukhin c106be4ce3 refactoring of assertion_order 2020-03-06 19:44:08 +11:00
apantykhin 3f658bd5ac add comparison 2019-02-19 09:07:39 -07:00