Results for ysh-augmented.test.sh

statusosh
pass 7
FAIL 5
total12
caseoshdescription
0pass Augmented assignment doesn't work on List
1FAIL Augmented assignment respects command_sub_errexit
details
2pass Augmented assignment with integers
3FAIL Augmented assignment on string changes to Int Float
details
4FAIL Augmented assignment with floats
details
5pass Int/Float augmented += -= *= /=
6pass Int Augmented //= %= **= and bitwise ops
7FAIL Augmented assignment of Dict
details
8FAIL Augmented assignment of List
details
9pass Dict with nonexistent key (bug fix)
10pass List with nonexistent elemnt
11pass Augmented assignment doesn't work with multiple LHS
7 passed, 0 OK, 0 not implemented, 0 BUG, 5 failed, 0 timeouts, 0 cases skipped
5 failed under osh

Details on runs that didn't PASS

osh1 Augmented assignment respects command_sub_errexit

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

stdout:
stderr: 
  setvar x += $(echo 3)
  ^~~~~~
[ stdin ]:2: fatal: Integer too big: 42
osh3 Augmented assignment on string changes to Int Float

[osh stdout] Expected '(Str) "42"\n(Int) 46\n(Int) 55\n(Float) 10.5\n' Got '(Str) "42"\n'
[osh status] Expected 0, got 1

stdout:
(Str)   "42"
stderr:
  setvar x += 4 * 1
  ^~~~~~
[ stdin ]:4: fatal: Integer too big: 42
osh4 Augmented assignment with floats

[osh stdout] Expected '43.5\n45.0\n48.0\n', got '43.5\n45.0\n'
[osh status] Expected 0, got 1

stdout:
43.5
45.0
stderr:
  setvar x += '3'
  ^~~~~~
[ stdin ]:9: fatal: Integer too big: 3
osh7 Augmented assignment of Dict

[osh stdout] Expected '43.5\n45.0\n48.0\n', got '43.5\n45.0\n'
[osh status] Expected 0, got 1

stdout:
43.5
45.0
stderr:
  setvar d.x += '3'
  ^~~~~~
[ stdin ]:9: fatal: Integer too big: 3
osh8 Augmented assignment of List

[osh stdout] Expected '31 42\n31 21\n31 10.5\n', got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
  setvar mylist[0] -= 1
  ^~~~~~
[ stdin ]:5: fatal: Integer too big: 32