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