Results for ysh-funcs-builtin.test.sh

statusyshysh-cpp
pass 160
FAIL 016
total1616
caseyshysh-cppdescription
0pass FAIL Bool()
details
1pass FAIL Int()
details
2pass FAIL Float()
details
3pass FAIL Str()
details
4pass FAIL Dict()
details
5pass FAIL join()
details
6pass FAIL abs
details
7pass FAIL any() and all()
details
8pass FAIL sum()
details
9pass FAIL sorted()
details
10pass FAIL reversed()
details
11pass FAIL @[split(x)] respects IFS
details
12pass FAIL @[maybe(x)]
details
13pass FAIL maybe() on invalid type is fatal error
details
14pass FAIL split() on invalid type is fatal error
details
15pass FAIL @[glob(x)]
details
16 passed, 0 OK, 0 not implemented, 0 BUG, 16 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

ysh-cpp0 Bool()

[ysh-cpp stdout] Expected 'false\ntrue\n', got ''
[ysh-cpp status] Expected 0, got 1

stdout:
stderr: 
  write $a $b
        ^~
[ stdin ]:3: fatal: Undefined variable 'a'
ysh-cpp1 Int()

[ysh-cpp stdout] Expected '3\n-35\n', got ''
[ysh-cpp status] Expected 3, got 1

stdout:
stderr: 
  write $a $b
        ^~
[ stdin ]:3: fatal: Undefined variable 'a'
ysh-cpp2 Float()

[ysh-cpp stdout] Expected '1.2\n3.4\n', got ''
[ysh-cpp status] Expected 0, got 1

stdout:
stderr: 
  write $a $b
        ^~
[ stdin ]:3: fatal: Undefined variable 'a'
ysh-cpp3 Str()

[ysh-cpp stdout] Expected '5\n42\n', got ''
[ysh-cpp status] Expected 0, got 1

stdout:
stderr: 
  write $a $b
        ^~
[ stdin ]:3: fatal: Undefined variable 'a'
ysh-cpp4 Dict()

[ysh-cpp stdout] Expected '0\n', got '\n'

stdout:
stderr: 
ysh-cpp5 join()

[ysh-cpp stdout] Expected "['abc d']\n['a:b:c d']\n", got ''
[ysh-cpp status] Expected 0, got 1

stdout:
stderr: 
  argv.py $y
          ^~
[ stdin ]:4: fatal: Undefined variable 'y'
ysh-cpp6 abs

[ysh-cpp stdout] Expected '505\n5\n0\n5\n', got '\n\n'

stdout:

stderr:
ysh-cpp7 any() and all()

[ysh-cpp stdout] Expected 'true\nfalse\nfalse\n__\ntrue\ntrue\nfalse\n', got ''
[ysh-cpp status] Expected 0, got 1

stdout:
stderr: 
  write $a1 $a2 $a3
        ^~~
[ stdin ]:4: fatal: Undefined variable 'a1'
ysh-cpp8 sum()

[ysh-cpp stdout] Expected '3\n45\n42\n', got '\n\n\n'

stdout:


stderr:
ysh-cpp9 sorted()

[ysh-cpp stdout] Expected '0\n1\n2\n', got ''
[ysh-cpp status] Expected 0, got 1

stdout:
stderr: 
  write @x
        ^~
[ stdin ]:2: fatal: Can't splice 'x'
ysh-cpp10 reversed()

[ysh-cpp stdout] Expected '2\n1\n0\n', got ''
[ysh-cpp status] Expected 0, got 1

stdout:
stderr: 
  write @x
        ^~
[ stdin ]:2: fatal: Can't splice 'x'
ysh-cpp11 @[split(x)] respects IFS

[ysh-cpp stdout] Expected "['one', 'two', 'three']\n", got '[]\n'

stdout:
[]
stderr:
ysh-cpp12 @[maybe(x)]

[ysh-cpp stdout] Expected "['a', 'X', 'b']\n['a', 'b']\n", got "['a', 'b']\n['a', 'b']\n"

stdout:
['a', 'b']
['a', 'b']
stderr:
ysh-cpp13 maybe() on invalid type is fatal error

[ysh-cpp stdout] Expected '', got "['a', 'b']\ndone\n"
[ysh-cpp status] Expected 3, got 0

stdout:
['a', 'b']
done
stderr:
ysh-cpp14 split() on invalid type is fatal error

[ysh-cpp stdout] Expected '--all\n--long\n', got '\n\n'
[ysh-cpp status] Expected 3, got 0

stdout:

stderr:
ysh-cpp15 @[glob(x)]

[ysh-cpp stdout] Expected 'A\nB\n___\na.z\nb.z\n___\n-.z\na.z\nb.z\n', got 'A\nB\n___\n\n___\n\n'

stdout:
A
B
___

___

stderr: