| 238 | } |
| 239 | |
| 240 | func TestGDA(t *testing.T) { |
| 241 | var buf bytes.Buffer |
| 242 | fmt.Fprintf(&buf, "%10s%8s%8s%8s%8s%8s%8s\n", "name", "total", "success", "fail", "ignore", "skip", "missing") |
| 243 | for _, fname := range GDAfiles { |
| 244 | succeed := t.Run(fname, func(t *testing.T) { |
| 245 | path, tcs := readGDA(t, fname) |
| 246 | gdaTest(t, path, tcs) |
| 247 | }) |
| 248 | if !succeed && *flagFailFast { |
| 249 | break |
| 250 | } |
| 251 | } |
| 252 | } |
| 253 | |
| 254 | func (tc TestCase) Run(c *Context, done chan error, d, x, y *Decimal) (res Condition, err error) { |
| 255 | switch tc.Operation { |