Skip to content

Commit 5390fc7

Browse files
committed
Send \n and end of chars echo server message.
The \n serves as a normalization terminator - that is, it means we know that even if a combining char comes next, it will end up as an isolate rather than forming a grapheme with the \n. A `z` could be followed by a combiner in the next packet, so after upcoming fixes to async socket decoding we'll now not hand such a character on until the next packet arrives and we see there is no combiner. This would break the test, which did not account for such NFG behavior.
1 parent d6bcadc commit 5390fc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

S32-io/IO-Socket-Async.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ multi sub client(Str $message) {
6666
});
6767
}
6868

69-
my $message = [~] '0'..'z';
69+
my $message = [~] flat '0'..'z', "\n";
7070
my $echoResult = await client($message);
7171
$echoTap.close;
7272
ok $echoResult eq $message, 'Echo server';

0 commit comments

Comments
 (0)