Skip to content

Commit 28516c4

Browse files
committed
Add missing encodings to S32-encoding/registry.t
Add utf32, uf16le, utf16be, windows-932, windows-1251 and windows-1252.
1 parent 8f02b3f commit 28516c4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

S32-encoding/registry.t

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1+
12
use Test;
23
use lib $?FILE.IO.parent(2).add: 'packages';
34
use Test;
45
use Test::Util;
56

6-
plan 15;
7+
plan 40;
78

8-
for <utf8 utf-8 UTF-8 ascii iso-8859-1 latin-1> -> $name {
9+
for <utf8 utf-8 UTF-8 ascii iso-8859-1 latin-1 utf16 utf-16 UTF-16 UTF16
10+
utf16le utf-16le utf16-le utf-16-le utf16be UTF16BE UTF-16be utf16-be
11+
utf-16-be utf16-le UTF16-BE UTF16-LE windows932 windows-932 windows-1251
12+
windows1251 windows-1252 windows1252 utf32 utf-32 UTF32> -> $name {
913
group-of 3 => "Can find built-in $name encoding" => {
1014
given Encoding::Registry.find: $name {
1115
isa-ok $_, Encoding::Builtin, 'type of result';

0 commit comments

Comments
 (0)