summaryrefslogtreecommitdiff
path: root/t/uni/upper.t
blob: 532f4bdd7be4499d527db8ca4908eee8d3ff6757 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
BEGIN {
    chdir 't' if -d 't';
    unless (defined &DynaLoader::boot_DynaLoader) {
      print("1..0 # miniperl: no Unicode::Normalize");
      exit(0);
    }
    require "uni/case.pl";
}

use feature 'unicode_strings';

is(uc("\x{3B1}\x{345}\x{301}"), "\x{391}\x{301}\x{399}",
                                                   'Verify moves YPOGEGRAMMENI');

casetest( 1,	# extra tests already run
	"Uppercase_Mapping",
	 uc                        => sub { uc $_[0] },
	 uc_with_appended_null_arg => sub { my $a = ""; uc ($_[0] . $a) }
        );