gomu/anko/anko_test.go
2021-02-15 20:28:06 +08:00

21 lines
278 B
Go

package anko_test
import (
"testing"
"github.com/issadarkthing/gomu/anko"
"github.com/stretchr/testify/assert"
)
func Test_GetBool(t *testing.T) {
expect := true
a := anko.NewAnko()
a.Define("x", expect)
result := a.GetBool("x")
assert.Equal(t, expect, result)
}