MCPcopy
hub / github.com/google/mangle / TestFloat64ToStringFailure

Function TestFloat64ToStringFailure

functional/functional_test.go:665–677  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

663}
664
665func TestFloat64ToStringFailure(t *testing.T) {
666 tests := [][]ast.BaseTerm{
667 []ast.BaseTerm{ast.Number(42)},
668 []ast.BaseTerm{ast.String("abc")},
669 }
670 for _, test := range tests {
671 term := ast.ApplyFn{symbols.Float64ToString, test}
672 got, err := EvalExpr(term, ast.ConstSubstMap{})
673 if err == nil {
674 t.Errorf("EvalExpr(%v)=%v want error.", term, got)
675 }
676 }
677}
678
679func TestNameFuns(t *testing.T) {
680 tests := []struct {

Callers

nothing calls this directly

Calls 3

NumberFunction · 0.92
StringFunction · 0.92
EvalExprFunction · 0.85

Tested by

no test coverage detected