added 2 tests wrt utf string manipulations causing segfaults
[p5sagit/Devel-Declare.git] / t / segv_utf8_lc_prevented.t
CommitLineData
d2b434aa 1
2use strict;
3use warnings;
4
5use Test::More tests => 2; # last test to print
6
7use Devel::Declare 'method' => sub{};
8
9sub lowercase {
10 lc $_[0];
11}
12
13is uc("bar\x{263a}"), "BAR\x{263a}";
14is lowercase("FOO\x{263a}"), "foo\x{263a}";
15
16=pod
17
18This test does *not* segfault for me like t/segv_utf8_lc.t
19
20=cut
21