Files
go-astikit/bool_test.go
2024-02-07 19:01:24 +01: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.Fatalf("expected %d, got %d", e, g)
}
if e, g := uint32(1), BoolToUInt32(true); e != g {
t.Fatalf("expected %d, got %d", e, g)
}
}