(t *testing.T)
| 663 | } |
| 664 | |
| 665 | func 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 | |
| 679 | func TestNameFuns(t *testing.T) { |
| 680 | tests := []struct { |