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 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 198, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 170, in main
    return AppBundleMain(argv)
  File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 140, in AppBundleMain
    return shell.Main('osh', arg_r, environ, login_shell, loader, readline)
  File "/home/andy/git/oilshell/oil/core/shell.py", line 1111, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 341, in Batch
    node = c_parser.ParseLogicalLine()  # can raise ParseError
  File "/home/andy/git/oilshell/oil/osh/cmd_parse.py", line 2721, in ParseLogicalLine
    node = self._ParseCommandLine()
  File "/home/andy/git/oilshell/oil/osh/cmd_parse.py", line 2580, in _ParseCommandLine
    child = self.ParseAndOr()
  File "/home/andy/git/oilshell/oil/osh/cmd_parse.py", line 2504, in ParseAndOr
    return self._ParseAndOr()
  File "/home/andy/git/oilshell/oil/osh/cmd_parse.py", line 2515, in _ParseAndOr
    child = self.ParsePipeline()
  File "/home/andy/git/oilshell/oil/osh/cmd_parse.py", line 2463, in ParsePipeline
    child = self.ParseCommand()
  File "/home/andy/git/oilshell/oil/osh/cmd_parse.py", line 2381, in ParseCommand
    return self.ParseCompoundCommand()
  File "/home/andy/git/oilshell/oil/osh/cmd_parse.py", line 1995, in ParseCompoundCommand
    return self.ParseFor()
  File "/home/andy/git/oilshell/oil/osh/cmd_parse.py", line 1533, in ParseFor
    n2 = self._ParseForEachLoop(for_kw)
  File "/home/andy/git/oilshell/oil/osh/cmd_parse.py", line 1471, in _ParseForEachLoop
    iter_words, semi_tok = self.ParseForWords()
  File "/home/andy/git/oilshell/oil/osh/cmd_parse.py", line 1351, in ParseForWords
    self._GetWord()
  File "/home/andy/git/oilshell/oil/osh/cmd_parse.py", line 650, in _GetWord
    w = self.w_parser.ReadWord(self.next_lex_mode)
  File "/home/andy/git/oilshell/oil/osh/word_parse.py", line 2145, in ReadWord
    w = self._ReadWord(word_mode)
  File "/home/andy/git/oilshell/oil/osh/word_parse.py", line 2072, in _ReadWord
    return self._ReadCompoundWord(lex_mode)
  File "/home/andy/git/oilshell/oil/osh/word_parse.py", line 1757, in _ReadCompoundWord
    return self._ReadCompoundWord3(lex_mode, Id.Undefined_Tok, True)
  File "/home/andy/git/oilshell/oil/osh/word_parse.py", line 1852, in _ReadCompoundWord3
    part = self._ReadUnquotedLeftParts(is_triple_quoted)
  File "/home/andy/git/oilshell/oil/osh/word_parse.py", line 819, in _ReadUnquotedLeftParts
    dq_part = self._ReadDoubleQuoted(self.cur_token)
  File "/home/andy/git/oilshell/oil/osh/word_parse.py", line 1081, in _ReadDoubleQuoted
    self._ReadLikeDQ(left_token, False, parts)
  File "/home/andy/git/oilshell/oil/osh/word_parse.py", line 1024, in _ReadLikeDQ
    part = self._ReadDoubleQuotedLeftParts()
  File "/home/andy/git/oilshell/oil/osh/word_parse.py", line 758, in _ReadDoubleQuotedLeftParts
    raise AssertionError(self.cur_token)
AssertionError: (Token
  id: Id.Left_DollarBraceZsh
  length: 6
  col: 10
  line: 
    (SourceLine
      line_num: 3
      content: "for k in \"${(@k)assoc}\"; do\n"
      src: (source.Stdin comment:"")
    )
)
osh-cpp3 iterate over keys

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

stdout:
stderr: 
osh: _gen/bin/oils_for_unix.mycpp.cc:45189: syntax_asdl::word_part_t* word_parse::WordParser::_ReadDoubleQuotedLeftParts(): Assertion `0' failed.
timeout: the monitored command dumped core
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: