A slightly tweaked patch to perldelta from Craig Berry acknowledging the
[p5sagit/p5-mst-13.2.git] / t / uni / cache.t
CommitLineData
c49d5ed7 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 {
99870f4d 11 # XXX Kludge requires exact path, which might change
12 $count++ if $_[1] eq 'unicore/lib/Sc/Hira.pl';
c49d5ed7 13};
14
15my $s = 'foo';
16
17$s =~ m/[\p{Hiragana}]/;
18$s =~ m/[\p{Hiragana}]/;
19$s =~ m/[\p{Hiragana}]/;
20$s =~ m/[\p{Hiragana}]/;
21
22is($count, 1, "Swatch hash caching kept us from reloading swatch hash.");