Skip to content

Commit

Permalink
[spec/ysh-json] Adjust allowed failures
Browse files Browse the repository at this point in the history
And enhance test.
  • Loading branch information
Andy C committed Jan 29, 2024
1 parent d14782f commit a23c474
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion spec/ysh-json.test.sh
@@ -1,4 +1,4 @@
## oils_failures_allowed: 3
## oils_failures_allowed: 2
## tags: dev-minimal

#### usage errors
Expand Down Expand Up @@ -852,11 +852,25 @@ diff=0

var x = $'\xce'
json8 write (x)
declare -p x
echo

var y = $'\xbc'
json8 write (y)
declare -p y
echo

var z = $'\xf0\x9f\xa4\xff'
json8 write (z)
declare -p z

## STDOUT:
b'\yce'
declare -- x=$'\xce'

b'\ybc'
declare -- y=$'\xbc'

b'\yf0\y9f\ya4\yff'
declare -- z=$'\xf0\x9f\xa4\xff'
## END

0 comments on commit a23c474

Please sign in to comment.