Results for ysh-unicode.test.sh

statusosh
pass 5
FAIL 2
total7
caseoshdescription
0FAIL ${#s} and len(s)
details
1pass JSON \uXXXX\uYYYY as max code point - can't go above
2pass Parsing data - J8 rejects \u{110000}
3pass Parsing source code - YSH rejects \u{110000}
4FAIL Parsing source code - YSH source code rejects encoded string
details
5pass JSON and J8 reject encoded string above max code point
6pass Max code point: json, json8, = keyword, pp test_
5 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

osh0 ${#s} and len(s)

[osh stdout] Expected 'farmer scalars = 4\nfacepalm scalars = 5\nfarmer len = 15\nfacepalm len = 17\n' Got 'farmer scalars = 4\nfacepalm scalars = 5\n'
[osh status] Expected 0 Got 2

stdout:
farmer scalars = 4
facepalm scalars = 5
stderr:
  echo "farmer len =" $[len(farmer)]
                           ^
[ stdin ]:7: Unexpected token after arithmetic expression (Id.Arith_LParen != Id.Arith_RBracket)
osh4 Parsing source code - YSH source code rejects encoded string

[osh stdout] Expected '' Got "(Str) '\xf4\x8f\xbf\xbf'\nstatus=0\n(Str) b'\\yf4\\y90\\y80\\y80'\nstatus=0\n"

stdout:
(Str)   '􏿿'
status=0
(Str)   b'\yf4\y90\y80\y80'
status=0
stderr: