Results for ysh-func.test.sh

statusyshysh-cpp
pass 3029
FAIL 01
total3030
caseyshysh-cppdescription
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 not allowed (with shopt -u redefine_proc_func)
11pass pass Redefining functions is allowed (with shopt -s redefine_proc_func)
12pass pass Functions cannot redefine readonly vars (even with shopt -s redefine_proc_func)
13pass pass Functions can redefine non-readonly vars
14pass pass Vars cannot redefine functions (even with shopt -s redefine_proc_func)
15pass pass Multiple func calls
16pass pass Undefined var in function
17pass pass Param binding semantics
18pass pass Recursive functions
19pass FAIL Recursive functions with LRU Cache
details
20pass pass Varadic arguments, no other args
21pass pass Varadic arguments, other args
22pass pass Varadic arguments, too few args
23pass pass Userland max
24pass pass Functions share a namespace with variables
25pass pass We can store funcs in dictionaries
26pass pass Functions cannot be nested
27pass pass Functions can be shadowed
28pass pass Function names cannot be redeclared
29pass pass Functions cannot be mutated
59 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

ysh-cpp19 Recursive functions with LRU Cache

[ysh-cpp 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-cpp status] Expected 0, got -6

stdout:
stderr: 
terminate called after throwing an instance of 'IndexError*'
timeout: the monitored command dumped core