Results for serialize.test.sh

statusoshosh-cpp
pass 76
ok 32
FAIL 02
total1010
caseoshosh-cppdescription
0pass FAIL printf %q newline
details
1pass pass printf %q spaces
2ok FAIL printf %q quotes
detailsdetails
3ok ok printf %q unprintable
detailsdetails
4ok ok printf %q unicode
detailsdetails
5pass pass printf %q invalid unicode
6pass pass set
7pass pass declare
8pass pass ${var@Q}
9pass pass xtrace
13 passed, 5 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh-cpp0 printf %q newline

[osh-cpp stdout] Expected "$'one\\ntwo'\nroundtrip-ok\n" Got "$'one\\ntwo'\n"
[osh-cpp status] Expected 0 Got 2

stdout:
$'one\ntwo'
stderr:
  quoted="$(printf '%q\n' "$newline")"
                                    ^
[ stdin ]:6: Invalid word while parsing command list
osh2 printf %q quotes

stdout:
$'\'"'
roundtrip-ok
stderr:
osh-cpp2 printf %q quotes

[osh-cpp stdout] Expected '$\'\\\'"\'\nroundtrip-ok\n' Got '$\'\\\'"\'\n'
[osh-cpp status] Expected 0 Got 2

stdout:
$'\'"'
stderr:
  quoted="$(printf '%q\n' "$quotes")"
                                   ^
[ stdin ]:6: Invalid word while parsing command list
osh3 printf %q unprintable

stdout:
$'\xff'
stderr:
osh-cpp3 printf %q unprintable

stdout:
$'\xff'
stderr:
osh4 printf %q unicode

stdout:
'μ'
stderr:
osh-cpp4 printf %q unicode

stdout:
'μ'
stderr: