This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Move File::Fetch from lib to ext
[perl5.git] / t / uni / cache.t
CommitLineData
c49d5ed7
JS
1BEGIN {
2 chdir 't' if -d 't';
3 @INC = qw(../lib .);
4 require "test.pl";
5}
6
7plan tests => 1;
8
9my $count = 0;
10unshift @INC, sub {
11 $count++ if $_[1] eq 'unicore/lib/gc_sc/Hira.pl';
12};
13
14my $s = 'foo';
15
16$s =~ m/[\p{Hiragana}]/;
17$s =~ m/[\p{Hiragana}]/;
18$s =~ m/[\p{Hiragana}]/;
19$s =~ m/[\p{Hiragana}]/;
20
21is($count, 1, "Swatch hash caching kept us from reloading swatch hash.");