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:
dumb_alloc:
	gNumNew = 2081
	gNumDelete = 185
	gMemPos = 70832

	gNumMalloc = 151
	gNumFree = 0
	gMemPos2 = 10816
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 "['XX', 'b', 'foo', 'bar', 'a+1', 'c']\n"

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

[osh_.cc 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:
dumb_alloc:
	gNumNew = 2138
	gNumDelete = 204
	gMemPos = 72544

	gNumMalloc = 167
	gNumFree = 0
	gMemPos2 = 11072
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 ${}

dumb_alloc:
	gNumNew = 1988
	gNumDelete = 158
	gMemPos = 68112

	gNumMalloc = 130
	gNumFree = 0
	gMemPos2 = 10496
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

dumb_alloc:
	gNumNew = 1977
	gNumDelete = 158
	gMemPos = 67776

	gNumMalloc = 121
	gNumFree = 0
	gMemPos2 = 10352
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 *)

dumb_alloc:
	gNumNew = 2034
	gNumDelete = 173
	gMemPos = 69632

	gNumMalloc = 141
	gNumFree = 0
	gMemPos2 = 10672
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 "['v1']\n"

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

[osh_.cc stdout] Expected "['']\n", got "['v1']\n"

stdout:
['v1']
stderr:
dumb_alloc:
	gNumNew = 2055
	gNumDelete = 178
	gMemPos = 70272

	gNumMalloc = 146
	gNumFree = 0
	gMemPos2 = 10736