Updated to return bool false only for zero
This commit is contained in:
parent
770890fb15
commit
ed6dd5ade6
@ -61,4 +61,5 @@ func TestToBool(t *testing.T) {
|
||||
assert.Equal(t, ToBool("T"), true)
|
||||
assert.Equal(t, ToBool(1), true)
|
||||
assert.Equal(t, ToBool(true), true)
|
||||
assert.Equal(t, ToBool(-1), true)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user