Skip to content

Commit

Permalink
Stop using invalid unicode in a string literal
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Mar 22, 2018
1 parent cabc5b3 commit 1e1b9c0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions S32-str/encode.t
Expand Up @@ -72,8 +72,6 @@ is "\x[effff]".encode('utf-8').decode, "\x[effff]", 'Noncharacters round-trip wi
'å', 'ascii', '?',
'', 'latin-1', '?',
'', 'windows-1252', '?',
"\x[FFFFFF]", 'utf-8', "\x[FFFD]",
"\x[FFFFFF]", 'utf-16', "\x[FFFD]",
) -> $string, $encoding, $default-replacement {
subtest {
throws-like { $string.encode($encoding) }, Exception, message => rx:s:i/Error encoding $encoding string/,
Expand Down

0 comments on commit 1e1b9c0

Please sign in to comment.