Results for ysh-assign.test.sh

statusysh
pass 19
FAIL 2
total21
caseyshdescription
0pass proc static check: const can't be mutated
1pass top-level dynamic check: const can't be be mutated
2pass top level: var can be redefined by var/const
3pass setvar mutates local
4pass top level: setvar creates global
5pass top level: setvar mutates var
6pass proc static check: variable changed by setvar must be declared
7pass setglobal
8pass setglobal of undeclared var is allowed
9pass var a, b does implicit null init
10pass var x, y = f()
11pass const x, y = f()
12pass setvar x, y = 1, 2
13pass setvar to swap List and Dict elements
14pass setvar d.key = 42 (setitem)
15pass setvar mylist[1] = 42 (setitem)
16pass mixing assignment builtins and YSH assignment
17FAIL circular dict - TODO 2023-06 REGRESS
details
18FAIL circular list - TODO 2023-06 REGRESS
details
19pass exit code of var, const, setvar with command sub
20pass setvar obj[INVALID TYPE] =
19 passed, 0 OK, 0 not implemented, 0 BUG, 2 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 0x7fe389996690) {"name":"foo"}\n(Dict 0x7fe389996690) {"name":123}\n(Dict 0x7fe389996690) {"name":"mystr"}\n'

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

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

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