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 = 2169
	gNumDelete = 190
	gMemPos = 73440

	gNumMalloc = 152
	gNumFree = 1
	gMemPos2 = 11040
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 = 2236
	gNumDelete = 211
	gMemPos = 75792

	gNumMalloc = 168
	gNumFree = 1
	gMemPos2 = 11296
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 = 2073
	gNumDelete = 161
	gMemPos = 70672

	gNumMalloc = 131
	gNumFree = 1
	gMemPos2 = 10720
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 = 2062
	gNumDelete = 161
	gMemPos = 70336

	gNumMalloc = 122
	gNumFree = 1
	gMemPos2 = 10576
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 = 2120
	gNumDelete = 176
	gMemPos = 72208

	gNumMalloc = 142
	gNumFree = 1
	gMemPos2 = 10896
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 = 2151
	gNumDelete = 183
	gMemPos = 73456

	gNumMalloc = 147
	gNumFree = 1
	gMemPos2 = 10960