Updated to return bool false only for zero
This commit is contained in:
		
							parent
							
								
									ba8259276f
								
							
						
					
					
						commit
						c57ccf8bbe
					
				@ -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