generated from rmcguire/go-server-with-otel
13 lines
230 B
Go
13 lines
230 B
Go
package econetmetrics
|
|
|
|
import "testing"
|
|
|
|
func TestB2I(t *testing.T) {
|
|
if got := b2i(true); got != 1 {
|
|
t.Errorf("b2i(true) = %d, want 1", got)
|
|
}
|
|
if got := b2i(false); got != 0 {
|
|
t.Errorf("b2i(false) = %d, want 0", got)
|
|
}
|
|
}
|