github.com/MontFerret/ferret@v0.18.0/pkg/stdlib/math/pi_test.go (about) 1 package math_test 2 3 import ( 4 "context" 5 m "math" 6 "testing" 7 8 . "github.com/smartystreets/goconvey/convey" 9 10 "github.com/MontFerret/ferret/pkg/stdlib/math" 11 ) 12 13 func TestPi(t *testing.T) { 14 Convey("Should return Pi value", t, func() { 15 out, err := math.Pi(context.Background()) 16 17 So(err, ShouldBeNil) 18 So(out, ShouldEqual, m.Pi) 19 }) 20 }