Results for assoc-zsh.test.sh

statusoshosh_.pyosh_.cc
pass 111
FAIL 666
total777
caseoshosh_.pyosh_.ccdescription
0pass pass pass TODO: SETUP should be shared
1FAIL FAIL FAIL retrieve key
detailsdetailsdetails
2FAIL FAIL FAIL set key
detailsdetailsdetails
3FAIL FAIL FAIL iterate over keys
detailsdetailsdetails
4FAIL FAIL FAIL iterate over both keys and values
detailsdetailsdetails
5FAIL FAIL FAIL get length
detailsdetailsdetails
6FAIL FAIL FAIL index by integer does not work
detailsdetailsdetails
3 passed, 0 OK, 0 not implemented, 0 BUG, 18 failed, 0 timeouts, 0 cases skipped
6 failed under osh

Details on runs that didn't PASS

osh1 retrieve key

[osh stdout] Expected 'b\n', got 'aa\n'

stdout:
aa
stderr:
osh_.py1 retrieve key

[osh_.py stdout] Expected 'b\n', got 'aa\n'

stdout:
aa
stderr:
osh_.cc1 retrieve key

[osh_.cc stdout] Expected 'b\n', got 'aa\n'

stdout:
aa
stderr:
osh2 set key

[osh stdout] Expected "['bar', 'b', 'c', 'XX']\n", got "['XX', 'b', 'foo', 'bar', 'a+1', 'c']\n"

stdout:
['XX', 'b', 'foo', 'bar', 'a+1', 'c']
stderr:
osh_.py2 set key

[osh_.py stdout] Expected "['bar', 'b', 'c', 'XX']\n", got "(cmd_value.Argv argv:[argv.py XX b foo bar 'a+1' c] arg_spids:[30 32 32 32 32 32 32])\n"

stdout:
(cmd_value.Argv argv:[argv.py XX b foo bar 'a+1' c] arg_spids:[30 32 32 32 32 32 32])
stderr:
Unhandled SimpleCommand
osh_.cc2 set key

[osh_.cc stdout] Expected "['bar', 'b', 'c', 'XX']\n", got "(cmd_value.Argv argv:[argv.py XX b foo bar 'a+1' c] arg_spids:[30 32 32 32 32 32 32])\n"

stdout:
(cmd_value.Argv argv:[argv.py XX b foo bar 'a+1' c] arg_spids:[30 32 32 32 32 32 32])
stderr:
Unhandled SimpleCommand
osh3 iterate over keys

[osh stdout] Expected u'k1: v1\nk2: v2\nk3: v3\n', got ''
[osh status] Expected 0, got 2

stdout:
stderr: 
  for k in "${(@k)assoc}"; do
              ^
[ stdin ]:3: Unexpected token in ${}
osh_.py3 iterate over keys

[osh_.py stdout] Expected u'k1: v1\nk2: v2\nk3: v3\n', got ''
[osh_.py status] Expected 0, got 2

stdout:
stderr: 
  for k in "${(@k)assoc}"; do
              ^
[ stdin ]:3: Unexpected token in ${}
osh_.cc3 iterate over keys

[osh_.cc stdout] Expected u'k1: v1\nk2: v2\nk3: v3\n', got ''
[osh_.cc status] Expected 0, got 2

stdout:
stderr: 
  for k in "${(@k)assoc}"; do
              ^
[ stdin ]:3: Unexpected token in ${}
osh4 iterate over both keys and values

[osh stdout] Expected u'k1: v1\nk2: v2\nk3: v3\n', got ''
[osh status] Expected 0, got 2

stdout:
stderr: 
  for k v ("${(@kv)assoc}"); do
        ^
[ stdin ]:3: Unexpected word after for loop variable
osh_.py4 iterate over both keys and values

[osh_.py stdout] Expected u'k1: v1\nk2: v2\nk3: v3\n', got ''
[osh_.py status] Expected 0, got 2

stdout:
stderr: 
  for k v ("${(@kv)assoc}"); do
        ^
[ stdin ]:3: Unexpected word after for loop variable
osh_.cc4 iterate over both keys and values

[osh_.cc stdout] Expected u'k1: v1\nk2: v2\nk3: v3\n', got ''
[osh_.cc status] Expected 0, got 2

stdout:
stderr: 
  for k v ("${(@kv)assoc}"); do
        ^
[ stdin ]:3: Unexpected word after for loop variable
osh5 get length

[osh stdout] Expected '3 2\n', got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
  echo ${#assoc} ${#assoc[k1]}
       ^~
[ stdin ]:3: fatal: Array 'assoc' can't be referred to as a scalar (without @ or *)
osh_.py5 get length

[osh_.py stdout] Expected '3 2\n', got ''
[osh_.py status] Expected 0, got 1

stdout:
stderr: 
  echo ${#assoc} ${#assoc[k1]}
       ^~
[ stdin ]:3: fatal: Array 'assoc' can't be referred to as a scalar (without @ or *)
osh_.cc5 get length

[osh_.cc stdout] Expected '3 2\n', got ''
[osh_.cc status] Expected 0, got 1

stdout:
stderr: 
  echo ${#assoc} ${#assoc[k1]}
  ^~~~
[ stdin ]:3: fatal: Array 'assoc' can't be referred to as a scalar (without @ or *)
osh6 index by integer does not work

[osh stdout] Expected "['']\n", got "['v1']\n"

stdout:
['v1']
stderr:
osh_.py6 index by integer does not work

[osh_.py stdout] Expected "['']\n", got '(cmd_value.Argv argv:[argv.py v1] arg_spids:[21 23])\n'

stdout:
(cmd_value.Argv argv:[argv.py v1] arg_spids:[21 23])
stderr:
Unhandled SimpleCommand
osh_.cc6 index by integer does not work

[osh_.cc stdout] Expected "['']\n", got '(cmd_value.Argv argv:[argv.py v1] arg_spids:[21 23])\n'

stdout:
(cmd_value.Argv argv:[argv.py v1] arg_spids:[21 23])
stderr:
Unhandled SimpleCommand