mirror of
https://github.com/asticode/go-astikit.git
synced 2025-12-24 11:50:53 +08:00
13 lines
266 B
Go
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)
|
|
}
|
|
}
|