Results for ysh-closures.test.sh

statusoshosh-cpp
pass 85
FAIL 03
total88
caseoshosh-cppdescription
0pass pass Simple Expr Closure
1pass pass Simple Block Closure
2pass pass Expr Closures in a Loop !
3pass pass Block Closures in a Loop !
4pass pass Explicit __invoke__ for "objects in a loop", not closures in a loop
5pass FAIL Expr Closures in a different module
details
6pass FAIL Command Closures in a different module
details
7pass FAIL Closures as default argument
details
13 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh-cpp5 Expr Closures in a different module

[osh-cpp stdout] Expected 'global!\nglobal local!\n' Got ''
[osh-cpp status] Expected 0 Got 2

stdout:
stderr: 
  var global_block = ^(echo "$[g]!")
                                   ^
/home/uke/oil/spec/testdata/module2/closure.ysh:13: Invalid word while parsing command list
  use $REPO_ROOT/spec/testdata/module2/closure.ysh --pick {local,global}_expr
  ^~~
[ stdin ]:3: errexit PID 34064: Command failed with status 2
osh-cpp6 Command Closures in a different module

[osh-cpp stdout] Expected 'global!\nglobal local!\n' Got ''
[osh-cpp status] Expected 0 Got 2

stdout:
stderr: 
  var global_block = ^(echo "$[g]!")
                                   ^
/home/uke/oil/spec/testdata/module2/closure.ysh:13: Invalid word while parsing command list
  use $REPO_ROOT/spec/testdata/module2/closure.ysh --pick {local,global}_block
  ^~~
[ stdin ]:3: errexit PID 34090: Command failed with status 2
osh-cpp7 Closures as default argument

[osh-cpp stdout] Expected 'global expr!\nglobal block!\n' Got ''
[osh-cpp status] Expected 0 Got 2

stdout:
stderr: 
  var global_block = ^(echo "$[g]!")
                                   ^
/home/uke/oil/spec/testdata/module2/closure.ysh:13: Invalid word while parsing command list
  use $REPO_ROOT/spec/testdata/module2/closure.ysh --pick default_{expr,block}
  ^~~
[ stdin ]:3: errexit PID 34109: Command failed with status 2