Results for ysh-closures.test.sh

statusoshosh-cpp
pass 66
FAIL 11
total77
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 pass Expr Closures in a different module
6FAIL FAIL Command Closures in a different module
detailsdetails
12 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh6 Command Closures in a different module

[osh stdout] Expected 'global!\nglobal local!\n', got 'global!\n'
[osh status] Expected 0, got 1

stdout:
global!
stderr:
    return (^(echo "$[g] $[lo]!"))
                      ^
/home/uke/oil/spec/testdata/module2/closure.ysh:17: fatal: Undefined variable 'g'
osh-cpp6 Command Closures in a different module

[osh-cpp stdout] Expected 'global!\nglobal local!\n', got 'global!\n'
[osh-cpp status] Expected 0, got 1

stdout:
global!
stderr:
    return (^(echo "$[g] $[lo]!"))
                      ^
/home/uke/oil/test/../spec/testdata/module2/closure.ysh:17: fatal: Undefined variable 'g'