Results for oil-word-eval.test.sh

statusoshosh-cpp
pass 123
FAIL 09
total1212
caseoshosh-cppdescription
0pass FAIL Splice in array
details
1pass pass Splice in assoc array
2pass pass Can't splice string
3pass pass Can't splice undefined
4pass FAIL echo $f(x) for various types
details
5pass FAIL echo $f (x) with space is runtime error
details
6pass FAIL echo @f (x) with space is runtime error
details
7pass FAIL echo $x for various types
details
8pass FAIL @range()
details
9pass FAIL Wrong sigil with $range() is runtime error
details
10pass FAIL Serializing type in a list
details
11pass FAIL Wrong sigil @max(3, 4)
details
15 passed, 0 OK, 0 not implemented, 0 BUG, 9 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh-cpp0 Splice in array

[osh-cpp stdout] Expected "['one', 'two', 'three']\n", got ''
[osh-cpp status] Expected 0, got 1

stdout:
stderr: 
  argv.py @a
          ^~
[ stdin ]:3: fatal: Can't splice 'a'
osh-cpp4 echo $f(x) for various types

[osh-cpp stdout] Expected 'bool true\nint 2\nfloat 3.14\nstr identity\n---\nbool expr true\nbool splice true\n' Got 'bool\nint\nfloat\nstr\n---\nbool expr\nbool splice\n'

stdout:
bool
int
float
str
---
bool expr
bool splice
stderr:
osh-cpp5 echo $f (x) with space is runtime error

[osh-cpp status] Expected 3, got 1

stdout:
stderr: 
  echo $identity (true)
       ^~~~~~~~~
[ stdin ]:2: fatal: Undefined variable 'identity'
osh-cpp6 echo @f (x) with space is runtime error

[osh-cpp status] Expected 3, got 1

stdout:
stderr: 
  echo @identity (['foo', 'bar'])
       ^~~~~~~~~
[ stdin ]:2: fatal: Can't splice 'identity'
osh-cpp7 echo $x for various types

[osh-cpp stdout] Expected 'true\n42\n3.14\n', got '\n\n\n'

stdout:


stderr:
osh-cpp8 @range()

[osh-cpp stdout] Expected '10\n12\n14\n', got '\n'

stdout:
stderr: 
osh-cpp9 Wrong sigil with $range() is runtime error

[osh-cpp stdout] Expected '', got '\nshould not get here\n'
[osh-cpp status] Expected 3, got 0

stdout:
should not get here
stderr:
osh-cpp10 Serializing type in a list

[osh-cpp stdout] Expected '3\ntrue\n___\n', got ''
[osh-cpp status] Expected 3, got 1

stdout:
stderr: 
  write -- @mylist
           ^~~~~~~
[ stdin ]:5: fatal: Can't splice 'mylist'
osh-cpp11 Wrong sigil @max(3, 4)

[osh-cpp stdout] Expected '', got '\nshould not get here\n'
[osh-cpp status] Expected 3, got 0

stdout:
should not get here
stderr: