Results for ysh-assign.test.sh

statusyshysh_ALT
pass 1919
FAIL 22
total2121
caseyshysh_ALTdescription
0pass pass proc static check: const can't be mutated
1pass pass top-level dynamic check: const can't be be mutated
2pass pass top level: var can be redefined by var/const
3pass pass setvar mutates local
4pass pass top level: setvar creates global
5pass pass top level: setvar mutates var
6pass pass proc static check: variable changed by setvar must be declared
7pass pass setglobal
8pass pass setglobal of undeclared var is allowed
9pass pass var a, b does implicit null init
10pass pass var x, y = f()
11pass pass const x, y = f()
12pass pass setvar x, y = 1, 2
13pass pass setvar to swap List and Dict elements
14pass pass setvar d.key = 42 (setitem)
15pass pass setvar mylist[1] = 42 (setitem)
16pass pass mixing assignment builtins and YSH assignment
17FAIL FAIL circular dict - TODO 2023-06 REGRESS
detailsdetails
18FAIL FAIL circular list - TODO 2023-06 REGRESS
detailsdetails
19pass pass exit code of var, const, setvar with command sub
20pass pass setvar obj[INVALID TYPE] =
38 passed, 0 OK, 0 not implemented, 0 BUG, 4 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

ysh17 circular dict - TODO 2023-06 REGRESS

[ysh stdout] Expected "(OrderedDict) <'name': 'foo'>\n(OrderedDict) <'name': 123>\n(OrderedDict) <'name': 'mystr'>\n(OrderedDict) <'name': ...>\n" Got '(Dict) {"name":"foo"}\n(Dict) {"name":123}\n(Dict) {"name":"mystr"}\n(Dict) {"name":{ --> 0x7fc6eacd5d40 }}\n'

stdout:
(Dict)   {"name":"foo"}
(Dict)   {"name":123}
(Dict)   {"name":"mystr"}
(Dict)   {"name":{ --> 0x7fc6eacd5d40 }}
stderr:
ysh_ALT17 circular dict - TODO 2023-06 REGRESS

[ysh_ALT stdout] Expected "(OrderedDict) <'name': 'foo'>\n(OrderedDict) <'name': 123>\n(OrderedDict) <'name': 'mystr'>\n(OrderedDict) <'name': ...>\n" Got '(Dict) {"name":"foo"}\n(Dict) {"name":123}\n(Dict) {"name":"mystr"}\n(Dict) {"name":{ --> 0x7fcfef19a5c8 }}\n'

stdout:
(Dict)   {"name":"foo"}
(Dict)   {"name":123}
(Dict)   {"name":"mystr"}
(Dict)   {"name":{ --> 0x7fcfef19a5c8 }}
stderr:
ysh18 circular list - TODO 2023-06 REGRESS

[ysh stdout] Expected '(List) [1, 2, 3]\n(List) [[...], 2, 3]\n' Got '(List) [1, 2, 3]\n'

stdout:
(List)   [1, 2, 3]
stderr:
ysh_ALT18 circular list - TODO 2023-06 REGRESS

[ysh_ALT stdout] Expected '(List) [1, 2, 3]\n(List) [[...], 2, 3]\n' Got '(List) [1, 2, 3]\n'

stdout:
(List)   [1, 2, 3]
stderr: