mirror of
https://github.com/issadarkthing/gomu.git
synced 2025-05-01 13:48:52 +08:00
21 lines
278 B
Go
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)
|
|
}
|