diff options
author | Jonathan Steinert <unknown> | 2007-04-30 22:18:52 -0700 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-05-02 15:32:38 +0000 |
commit | c49d5ed730376407060cbf826eab2369ab99bf61 (patch) | |
tree | 3c6885ea001f4cbfa4c0bc185bae96b6cb60c5fd /t/uni | |
parent | 9f61653ad1a5a0e664e7c27edd6c232deb0bf787 (diff) | |
download | perl-c49d5ed730376407060cbf826eab2369ab99bf61.tar.gz |
[perl #42839] Swatch hash cache has key mismatch
From: Jonathan Steinert (via RT) <perlbug-followup@perl.org>
Message-ID: <rt-3.6.HEAD-30557-1178021932-1416.42839-75-0@perl.org>
p4raw-id: //depot/perl@31119
Diffstat (limited to 't/uni')
-rw-r--r-- | t/uni/cache.t | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/t/uni/cache.t b/t/uni/cache.t new file mode 100644 index 0000000000..c3f7634fcd --- /dev/null +++ b/t/uni/cache.t @@ -0,0 +1,21 @@ +BEGIN { + chdir 't' if -d 't'; + @INC = qw(../lib .); + require "test.pl"; +} + +plan tests => 1; + +my $count = 0; +unshift @INC, sub { + $count++ if $_[1] eq 'unicore/lib/gc_sc/Hira.pl'; +}; + +my $s = 'foo'; + +$s =~ m/[\p{Hiragana}]/; +$s =~ m/[\p{Hiragana}]/; +$s =~ m/[\p{Hiragana}]/; +$s =~ m/[\p{Hiragana}]/; + +is($count, 1, "Swatch hash caching kept us from reloading swatch hash."); |