Permalink
Browse files

Test that Buf.list gives the list of codepoints.

  • Loading branch information...
1 parent a7483be commit 20918f02b9a1a1d22c4a9a5233003df9ee7a1793 @edwinst edwinst committed Oct 5, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 S32-str/encode.t
View
@@ -1,6 +1,6 @@
use v6;
use Test;
-plan 13;
+plan 14;
# L<S32::Containers/Buf>
@@ -28,4 +28,6 @@ is Buf.new(246).decode('ISO-8859-1'), 'ö', 'decoding a Buf with Latin-1';
ok Buf ~~ Stringy, 'Buf does Stringy';
ok Buf ~~ Positional, 'Buf does Positional';
+is 'abc'.encode('ascii').list.join(','), '97,98,99', 'Buf.list gives list of codepoints';
+
# vim: ft=perl6

0 comments on commit 20918f0

Please sign in to comment.