Merge pull request #5 from txgruppi/master
Updated to return bool false only for zero
This commit is contained in:
commit
fb4a45a374
@ -63,4 +63,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