[svn:parrot] r39293 - branches/tt24_unicode_numifications/t/op

bacek at svn.parrot.org bacek at svn.parrot.org
Sun May 31 22:03:41 UTC 2009


Author: bacek
Date: Sun May 31 22:03:39 2009
New Revision: 39293
URL: https://trac.parrot.org/parrot/changeset/39293

Log:
[t] Add tests for TT#724

Modified:
   branches/tt24_unicode_numifications/t/op/string.t

Modified: branches/tt24_unicode_numifications/t/op/string.t
==============================================================================
--- branches/tt24_unicode_numifications/t/op/string.t	Sun May 31 21:52:43 2009	(r39292)
+++ branches/tt24_unicode_numifications/t/op/string.t	Sun May 31 22:03:39 2009	(r39293)
@@ -7,7 +7,7 @@
 use lib qw( . lib ../lib ../../lib );
 
 use Test::More;
-use Parrot::Test tests => 163;
+use Parrot::Test tests => 165;
 use Parrot::Config;
 
 =head1 NAME
@@ -2926,6 +2926,36 @@
 Foo/Bar
 OUT
 
+pir_output_is( <<'CODE', <<'OUT', 'numification of unicode strings (see TT#724)', todo =>'TT#724' );
+.sub main :main
+     $S0 = "140"
+     $I0 = $S0
+     say $I0
+     $I0 = find_encoding 'ucs2'
+     $S0 = trans_encoding $S0, $I0
+     $I0 = $S0
+     say $I0
+.end
+CODE
+140
+140
+OUT
+
+pir_output_is( <<'CODE', <<'OUT', 'numification of unicode strings (see TT#724)', todo =>'TT#724' );
+.sub main :main
+     $S0 = "140"
+     $N0 = $S0
+     say $N0
+     $I0 = find_encoding 'ucs2'
+     $S0 = trans_encoding $S0, $I0
+     $N0 = $S0
+     say $N0
+.end
+CODE
+140
+140
+OUT
+
 # Local Variables:
 #   mode: cperl
 #   cperl-indent-level: 4


More information about the parrot-commits mailing list