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/uke/oil/bin/oils_for_unix.py", line 198, in <module>
    sys.exit(main(sys.argv))
  File "/home/uke/oil/bin/oils_for_unix.py", line 170, in main
    return AppBundleMain(argv)
  File "/home/uke/oil/bin/oils_for_unix.py", line 140, in AppBundleMain
    return shell.Main('osh', arg_r, environ, login_shell, loader, readline)
  File "/home/uke/oil/core/shell.py", line 1125, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/uke/oil/core/main_loop.py", line 341, in Batch
    node = c_parser.ParseLogicalLine()  # can raise ParseError
  File "/home/uke/oil/osh/cmd_parse.py", line 2737, in ParseLogicalLine
    node = self._ParseCommandLine()
  File "/home/uke/oil/osh/cmd_parse.py", line 2596, in _ParseCommandLine
    child = self.ParseAndOr()
  File "/home/uke/oil/osh/cmd_parse.py", line 2520, in ParseAndOr
    return self._ParseAndOr()
  File "/home/uke/oil/osh/cmd_parse.py", line 2531, in _ParseAndOr
    child = self.ParsePipeline()
  File "/home/uke/oil/osh/cmd_parse.py", line 2479, in ParsePipeline
    child = self.ParseCommand()
  File "/home/uke/oil/osh/cmd_parse.py", line 2397, in ParseCommand
    return self.ParseCompoundCommand()
  File "/home/uke/oil/osh/cmd_parse.py", line 2015, in ParseCompoundCommand
    return self.ParseFor()
  File "/home/uke/oil/osh/cmd_parse.py", line 1559, in ParseFor
    n2 = self._ParseForEachLoop(for_kw)
  File "/home/uke/oil/osh/cmd_parse.py", line 1498, in _ParseForEachLoop
    iter_words, semi_tok = self.ParseForWords()
  File "/home/uke/oil/osh/cmd_parse.py", line 1378, in ParseForWords
    self._GetWord()
  File "/home/uke/oil/osh/cmd_parse.py", line 648, in _GetWord
    w = self.w_parser.ReadWord(self.next_lex_mode)
  File "/home/uke/oil/osh/word_parse.py", line 2165, in ReadWord
    w = self._ReadWord(word_mode)
  File "/home/uke/oil/osh/word_parse.py", line 2092, in _ReadWord
    return self._ReadCompoundWord(lex_mode)
  File "/home/uke/oil/osh/word_parse.py", line 1777, in _ReadCompoundWord
    return self._ReadCompoundWord3(lex_mode, Id.Undefined_Tok, True)
  File "/home/uke/oil/osh/word_parse.py", line 1872, in _ReadCompoundWord3
    part = self._ReadUnquotedLeftParts(is_triple_quoted)
  File "/home/uke/oil/osh/word_parse.py", line 833, in _ReadUnquotedLeftParts
    dq_part = self._ReadDoubleQuoted(self.cur_token)
  File "/home/uke/oil/osh/word_parse.py", line 1095, in _ReadDoubleQuoted
    self._ReadLikeDQ(left_token, False, parts)
  File "/home/uke/oil/osh/word_parse.py", line 1038, in _ReadLikeDQ
    part = self._ReadDoubleQuotedLeftParts()
  File "/home/uke/oil/osh/word_parse.py", line 772, 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:46001: 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: