Actually submit previous change.
[p5sagit/p5-mst-13.2.git] / ext / Encode / t / from_to.t
CommitLineData
41c240f5 1# $Id: from_to.t,v 1.1 2006/01/15 15:06:36 dankogai Exp $
2use strict;
3use Test::More tests => 3;
4use Encode qw(encode from_to);
5
6my $foo = encode("utf-8", "\x{5abe}");
7from_to($foo, "utf-8" => "latin1", Encode::FB_HTMLCREF);
8ok !Encode::is_utf8($foo);
9is $foo, '媾';
10
11my $bar = encode("latin-1", "\x{5abe}", Encode::FB_HTMLCREF);
12is $bar, '媾';