Ryan Leung
c31ea0312f
Support comparing byte slice ( #1202 )
...
* support comparing byte slice
Signed-off-by: Ryan Leung <rleungx@gmail.com>
* address the comment
Signed-off-by: Ryan Leung <rleungx@gmail.com>
2022-06-21 14:54:58 +10:00
Torkel Rogstad
83198c2c50
assert: guard CanConvert call in backward compatible wrapper
2022-02-15 20:26:04 +10:00
Torkel Rogstad
087b655c75
assert: allow comparing time.Time
2022-02-15 20:26:04 +10:00
Ilia Kravets
7bcf74e94f
fix msgAndArgs forwarding
2022-02-10 20:09:05 +10:00
Yongxin Wang
6f81fdf1db
fix the output source file in test output
2021-01-15 21:06:28 +11:00
Masaya Hayashi
1544508911
add assert positive/negative
2020-11-03 21:37:46 +11:00
Torkel Rogstad
51595dcf94
Allow comparing custom comparable types
...
Prior to this commit, this would not work:
```go
type myInt int
assert.Less(t, myInt(1), myInt(2)) // panic!
```
We add some type conversions, similarly to how `ObjectsAreEqualValues`
work. This allows us to compare `myInt` to `myInt`, as well as `myInt`
to `int`.
2020-06-22 19:40:53 +10:00
zjx20
3ec00f620a
assertion_compare: fix format string for numbers
2020-05-14 19:53:33 +10:00
alexpantyukhin
6be346c1f1
rename order files to compare files
2020-03-09 08:00:09 +11:00