mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 20:17:41 +00:00
Verify more carefully the results in the TestInt64AmountMul
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
This commit is contained in:
parent
4de3e73b8a
commit
fb2e28b070
@ -114,10 +114,11 @@ func TestInt64AmountMul(t *testing.T) {
|
|||||||
} {
|
} {
|
||||||
c := test.a
|
c := test.a
|
||||||
ok := c.Mul(test.b)
|
ok := c.Mul(test.b)
|
||||||
if ok != test.ok {
|
if ok && !test.ok {
|
||||||
t.Errorf("%v: unexpected ok: %t", test, ok)
|
t.Errorf("unextected success: %v", c)
|
||||||
}
|
} else if !ok && test.ok {
|
||||||
if ok {
|
t.Errorf("unexpeted failure: %v", c)
|
||||||
|
} else if ok {
|
||||||
if c != test.c {
|
if c != test.c {
|
||||||
t.Errorf("%v: unexpected result: %d", test, c)
|
t.Errorf("%v: unexpected result: %d", test, c)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user