mirror of https://github.com/stretchr/testify.git
parent
3acde138ca
commit
1c7f4ef084
|
@ -1092,7 +1092,7 @@ func toFloat(x interface{}) (float64, bool) {
|
|||
case float32:
|
||||
xf = float64(xn)
|
||||
case float64:
|
||||
xf = float64(xn)
|
||||
xf = xn
|
||||
case time.Duration:
|
||||
xf = float64(xn)
|
||||
default:
|
||||
|
|
|
@ -74,11 +74,11 @@ var (
|
|||
[1]interface{}{1},
|
||||
[]interface{}{},
|
||||
struct{ x int }{1},
|
||||
(*interface{})(&i),
|
||||
(func())(func() {}),
|
||||
(&i),
|
||||
(func() {}),
|
||||
interface{}(1),
|
||||
map[interface{}]interface{}{},
|
||||
(chan interface{})(make(chan interface{})),
|
||||
(make(chan interface{})),
|
||||
(<-chan interface{})(make(chan interface{})),
|
||||
(chan<- interface{})(make(chan interface{})),
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue