Results for assoc-zsh.test.sh

statusoshosh-cpp
pass 11
FAIL 66
total77
caseoshosh-cppdescription
0pass pass TODO: SETUP should be shared
1FAIL FAIL retrieve key
detailsdetails
2FAIL FAIL set key
detailsdetails
3FAIL FAIL iterate over keys
detailsdetails
4FAIL FAIL iterate over both keys and values
detailsdetails
5FAIL FAIL get length
detailsdetails
6FAIL FAIL index by integer does not work
detailsdetails
2 passed, 0 OK, 0 not implemented, 0 BUG, 12 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-cpp1 retrieve key

[osh-cpp 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-cpp2 set key

[osh-cpp 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:
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-cpp3 iterate over keys

[osh-cpp stdout] Expected u'k1: v1\nk2: v2\nk3: v3\n', got ''
[osh-cpp 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-cpp4 iterate over both keys and values

[osh-cpp stdout] Expected u'k1: v1\nk2: v2\nk3: v3\n', got ''
[osh-cpp 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 '2 2\n'

stdout:
2 2
stderr:
osh-cpp5 get length

[osh-cpp stdout] Expected '3 2\n', got '2 2\n'

stdout:
2 2
stderr:
osh6 index by integer does not work

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

stdout:
['v1']
stderr:
osh-cpp6 index by integer does not work

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

stdout:
['v1']
stderr: