Results for ysh-func.test.sh

statusyshysh_ALT
pass 2524
FAIL 01
total2525
caseyshysh_ALTdescription
0pass pass Identity function
1pass pass Too many args
2pass pass Too few args
3pass pass Positional args
4pass pass named args
5pass pass Named args with ...rest
6pass pass Spread/splat of named args: f(...more)
7pass pass Multiple spreads
8pass pass Proc-style return in a func is error
9pass pass Typed return in a proc is error
10pass pass Redefining functions is allowed
11pass pass Functions can redefine vars
12pass pass Multiple func calls
13pass pass Undefined var in function
14pass pass Param binding semantics
15pass pass Recursive functions
16pass FAIL Recursive functions with LRU Cache
details
17pass pass Varadic arguments, no other args
18pass pass Varadic arguments, other args
19pass pass Varadic arguments, too few args
20pass pass Userland max
21pass pass Functions share a namespace with variables
22pass pass We can store funcs in dictionaries
23pass pass Functions can be nested
24pass pass Functions can be shadowed
49 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

ysh_ALT16 Recursive functions with LRU Cache

[ysh_ALT stdout] Expected 'hit: 1\nhit: 2\nhit: 3\nhit: 4\nhit: 5\nhit: 6\nhit: 7\nhit: 8\n55\n[\n [\n 7,\n 13\n ],\n [\n 9,\n 34\n ],\n [\n 8,\n 21\n ],\n [\n 10,\n 55\n ]\n]\n' Got ''
[ysh_ALT status] Expected 0, got 1

stdout:
stderr: 
  source $LIB_YSH/list.ysh
         ^~~~~~~~
[ stdin ]:1: 'source' failed: No builtin file 'stdlib/ysh/list.ysh'
  source $LIB_YSH/list.ysh
  ^~~~~~
[ stdin ]:1: errexit PID 41738: command.Simple failed with status 1