(t *testing.T)
| 570 | } |
| 571 | |
| 572 | func TestMathWithExtension(t *testing.T) { |
| 573 | env := testMathEnv(t) |
| 574 | _, err := env.Extend(Math()) |
| 575 | if err != nil { |
| 576 | t.Fatalf("env.Extend(Math()) failed: %v", err) |
| 577 | } |
| 578 | _, iss := env.Compile("math.least(0, 1, 2) == 0") |
| 579 | if iss.Err() != nil { |
| 580 | t.Errorf("env.Compile() failed: %v", iss.Err()) |
| 581 | } |
| 582 | } |
| 583 | |
| 584 | func TestMathVersions(t *testing.T) { |
| 585 | versionCases := []struct { |
nothing calls this directly
no test coverage detected