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

Function TestNameToStringFailure

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

Source from the content-addressed store, hash-verified

743}
744
745func TestNameToStringFailure(t *testing.T) {
746 tests := [][]ast.BaseTerm{
747 []ast.BaseTerm{ast.Float64(3.14)},
748 []ast.BaseTerm{ast.String("abc")},
749 }
750 for _, test := range tests {
751 term := ast.ApplyFn{symbols.NameToString, test}
752 got, err := EvalExpr(term, ast.ConstSubstMap{})
753 if err == nil {
754 t.Errorf("EvalExpr(%v)=%v want error.", term, got)
755 }
756 }
757}
758
759func TestStringConcatenate(t *testing.T) {
760 tests := []struct {

Callers

nothing calls this directly

Calls 3

Float64Function · 0.92
StringFunction · 0.92
EvalExprFunction · 0.85

Tested by

no test coverage detected