4 if ($ENV{'PERL_CORE'}){
10 use Test::More tests => 9;
20 return bless [$value, $state], $class;
25 $self->[1] = ! $self->[1];
27 utf8::downgrade($self->[0]);
29 utf8::upgrade($self->[0]);
35 foreach my $t ("ASCII", "B\366se") {
36 my $length = length $t;
39 tie $u, 'UTF8Toggle', $t;
40 is (length $u, $length, "length of '$t'");
41 is (length $u, $length, "length of '$t'");
42 is (length $u, $length, "length of '$t'");
43 is (length $u, $length, "length of '$t'");
47 local $TODO = "Need more tests!";