Results for tea-func.test.sh

statusosh
FAIL 15
total15
caseoshdescription
0FAIL setvar f()[2] = 42 (setitem)
details
1FAIL Untyped func
details
2FAIL Typed func
details
3FAIL func: default values for positional params
details
4FAIL pass too many positional params to func (without spread)
details
5FAIL Positional Spread
details
6FAIL pass named arg to func
details
7FAIL Func with missing named param with no default
details
8FAIL Func passed wrong named param
details
9FAIL Named Spread
details
10FAIL Func with varargs
details
11FAIL return expression then return builtin
details
12FAIL inline function calls with spread, named args, etc.
details
13FAIL basic lambda
details
14FAIL Nested functions ??? Bug from Till.
details
0 passed, 0 OK, 0 not implemented, 0 BUG, 15 failed, 0 timeouts, 0 cases skipped
15 failed under osh

Details on runs that didn't PASS

osh0 setvar f()[2] = 42 (setitem)

[osh stdout] Expected '1\n2\n42\n', got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
FATAL: NotImplementedError(27,)
osh1 Untyped func

[osh stdout] Expected 'hi\n43\n', got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
FATAL: NotImplementedError(27,)
osh2 Typed func

[osh stdout] Expected 'hi\n43\n', got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
FATAL: NotImplementedError(27,)
osh3 func: default values for positional params

[osh stdout] Expected '11\n14\n', got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
FATAL: NotImplementedError(27,)
osh4 pass too many positional params to func (without spread)

[osh stdout] Expected 'f=3\n', got ''

stdout:
stderr: 
FATAL: NotImplementedError(27,)
osh5 Positional Spread

[osh stdout] Expected '7\n8\ny=11\n', got ''
[osh status] Expected 0, got 2

stdout:
stderr: 
    pp cell ':args'  # This works in Tea too for debugging
       ^~~~
[ stdin ]:5: Syntax error in expression (near Id.Expr_Name)
osh6 pass named arg to func

[osh stdout] Expected '42\n99\n', got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
FATAL: NotImplementedError(27,)
osh7 Func with missing named param with no default

[osh stdout] Expected 'verbose\n5\n', got ''
[osh status] Expected 1, got 2

stdout:
stderr: 
    if (verbose) {
    ^~
[ stdin ]:5: Syntax error in expression (near Id.Expr_If)
osh8 Func passed wrong named param

[osh stdout] Expected 'x=5\n', got ''

stdout:
stderr: 
FATAL: NotImplementedError(27,)
osh9 Named Spread

[osh stdout] Expected 'a\nb\nf\nret=5\n', got ''
[osh status] Expected 0, got 2

stdout:
stderr: 
    if (verbose) { echo 'verbose' }
    ^~
[ stdin ]:5: Syntax error in expression (near Id.Expr_If)
osh10 Func with varargs

[osh stdout] Expected "(Str) 'foo'\n(Tuple) ('a', 42, None)\n", got ''
[osh status] Expected 0, got 2

stdout:
stderr: 
    = fmt
    ^
[ stdin ]:5: Syntax error in expression (near Id.Arith_Equal)
osh11 return expression then return builtin

[osh stdout] Expected 'x=42\nstatus=42\n', got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
FATAL: NotImplementedError(27,)
osh12 inline function calls with spread, named args, etc.

[osh stdout] Expected '____\n__\nargs:\n42\n43\n__\nnamed:\n\nstring\n6\n____\n__\nargs:\n42\n43\n__\nnamed:\nx\ny\narray\n5\n6\n7\n8\n', got ''
[osh status] Expected 0, got 2

stdout:
stderr: 
  func f(a, b=0, ...args; c, d=0, ...named) {
        ^
[ stdin ]:3: Space required before (
osh13 basic lambda

[osh stdout] Expected '1\n43\n', got ''
[osh status] Expected 0, got 2

stdout:
stderr: 
  var f = |x| x+1
  ^~~
[ stdin ]:1: fatal: Lambda reserved but not implemented
osh14 Nested functions ??? Bug from Till.

[osh status] Expected 0, got 2

stdout:
stderr: 
    func unrelated() {return "hm?"}
         ^~~~~~~~~
[ stdin ]:6: Syntax error in expression (near Id.Expr_Name)