13 use open qw( :utf8 :std );
15 require q(./test.pl); plan(tests => 7);
28 use overload '""' => sub { ref(shift) . " stringified" },
31 sub ネᚹ { bless {} => shift }
33 package 읺ҎꀀḮṆᵷꜰ롬ᵕveŔŁoad엗텟ᵵ;
36 use base 'Ov에rꪩࡃᛝTeŝṱ';
40 my $x = 읺ҎꀀḮṆᵷꜰ롬ᵕveŔŁoad엗텟ᵵ->ネᚹ();
41 object_ok($x, '읺ҎꀀḮṆᵷꜰ롬ᵕveŔŁoad엗텟ᵵ');
43 my $y = Ov에rꪩࡃᛝTeŝṱ->ネᚹ();
44 object_ok($y, 'Ov에rꪩࡃᛝTeŝṱ');
46 is("$x", '읺ҎꀀḮṆᵷꜰ롬ᵕveŔŁoad엗텟ᵵ stringified', '... got the right value when stringifing');
47 is("$y", 'Ov에rꪩࡃᛝTeŝṱ stringified', '... got the right value when stringifing');
49 ok(($y eq 'Ov에rꪩࡃᛝTeŝṱ stringified'), '... eq was handled correctly');
53 $result = $x eq '읺ҎꀀḮṆᵷꜰ롬ᵕveŔŁoad엗텟ᵵ stringified'
55 ok(!$@, '... this should not throw an exception');
56 ok($result, '... and we should get the true value');