| 316 | } |
| 317 | |
| 318 | func TestBindSimple(t *testing.T) { |
| 319 | // t.Parallel() |
| 320 | path := "_examples/simple" |
| 321 | testPkg(t, pkg{ |
| 322 | path: path, |
| 323 | lang: features[path], |
| 324 | cmd: "build", |
| 325 | extras: nil, |
| 326 | want: []byte(`doc(pkg): |
| 327 | '\nsimple is a simple package.\n\n' |
| 328 | pkg.Func()... |
| 329 | fct = pkg.Func... |
| 330 | fct()... |
| 331 | pkg.Add(1,2)= 3 |
| 332 | pkg.Bool(True)= True |
| 333 | pkg.Bool(False)= False |
| 334 | pkg.Comp64Add((3+4j), (2+5j)) = (5+9j) |
| 335 | pkg.Comp128Add((3+4j), (2+5j)) = (5+9j) |
| 336 | OK |
| 337 | `), |
| 338 | }) |
| 339 | } |
| 340 | |
| 341 | func TestBindEmpty(t *testing.T) { |
| 342 | // t.Parallel() |