Skip to content

Commit

Permalink
[spec/ysh-string] $'' strings don't support \u{123456}
Browse files Browse the repository at this point in the history
Including multiline strings.

This is what we have J8 strings for!
  • Loading branch information
Andy C committed Jan 2, 2024
1 parent 1deabdb commit f770a43
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/ysh-string.test.sh
@@ -1,5 +1,5 @@
## our_shell: ysh
## oils_failures_allowed: 3
## oils_failures_allowed: 1

#### single quoted -- implicit and explicit raw
var x = 'foo bar'
Expand Down Expand Up @@ -185,7 +185,7 @@ two = 2 ""
]
## END

#### Triple Single Quotes, Expression Mode (TODO: j""")
#### Triple Single Quotes, Expression Mode (TODO: u''')

var two = 2
var three = 2
Expand All @@ -200,7 +200,7 @@ echo "[$x]"
var x = $'''
two = $two '
three = $three ''
\u{61}
\u0061
'''
echo "[$x]"

Expand Down Expand Up @@ -336,13 +336,13 @@ echo '''
## END


#### $''' in command mode (TODO: j""")
#### $''' in command mode (TODO: u''')

echo $'''
two = $two
'
'' '
\u{61}
\u0061
'''

## STDOUT:
Expand Down

0 comments on commit f770a43

Please sign in to comment.