Files
go-astikit/bool_test.go
T
Quentin Renard ad09659d94 Added bool
2022-09-29 15:49:19 +02:00

13 lines
266 B
Go

package astikit
import "testing"
func TestBoolToUInt32(t *testing.T) {
if e, g := uint32(0), BoolToUInt32(false); e != g {
t.Errorf("expected %d, got %d", e, g)
}
if e, g := uint32(1), BoolToUInt32(true); e != g {
t.Errorf("expected %d, got %d", e, g)
}
}