diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-08-10 12:03:08 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-08-10 12:03:08 +0000 |
commit | 79b8b3a76d8eda7372bb4dedae0ec7aebdaebc12 (patch) | |
tree | 9e4992c8719febb576deb6120740611380d71f7a /Build/source/libs/icu/icu-4.8.1/test/testdata/testaliases.txt | |
parent | 8cd13eb8f4bb7b92c6d9bb50aff9a62c37df026c (diff) |
icu 4.8.1
git-svn-id: svn://tug.org/texlive/trunk@23480 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/icu/icu-4.8.1/test/testdata/testaliases.txt')
-rw-r--r-- | Build/source/libs/icu/icu-4.8.1/test/testdata/testaliases.txt | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/Build/source/libs/icu/icu-4.8.1/test/testdata/testaliases.txt b/Build/source/libs/icu/icu-4.8.1/test/testdata/testaliases.txt new file mode 100644 index 00000000000..e5600ac43ed --- /dev/null +++ b/Build/source/libs/icu/icu-4.8.1/test/testdata/testaliases.txt @@ -0,0 +1,65 @@ +//******************************************************************************* +//* +//* Copyright (C) 2002-2009, International Business Machines +//* Corporation and others. All Rights Reserved. +//* +//******************************************************************************* + + +// This is a test resource to check whether the aliasing mechanism works +// as advertised + +testaliases:table(nofallback) +{ + // This should produce an error - circular alias + aaa:alias { "testaliases/aab" } // Test circular dependency protection + aab:alias { "testaliases/aaa" } + + // aliasing nonexist position + nonexisting:alias { "/ICUDATA/ja" } + + // aliasing to another resource + simplealias:alias { "testtypes/menu/file/open" } // simple referencing + + // alias that uses another alias and references parts of the end structure + referencingalias:alias { "testaliases/anotheralias/2" } // Referencing through another alias + anotheralias:alias { "/ICUDATA/ja_JP/LocaleScript" } // Provoke a fallback too + + LocaleScript:alias { "/ICUDATA/ja/LocaleScript" } + + // aliasing using position + boundaries:alias { "/ICUDATA-brkitr/ja" } // Referencing corresponding resource in another bundle + + // aliasing arrays + zoneTests { + zoneAlias:alias { "/ICUDATA-zone/en/zoneStrings" } // Referencing by index + zoneAlias1:alias { "/ICUDATA-zone/en/zoneStrings/3" } // Referencing by index + zoneAlias2:alias { "/ICUDATA-zone/en/zoneStrings/3/0" } // Referencing by index + } + + // Test aliasing parts of an array using position + zoneStrings { + :alias { "/ICUDATA/en" } + :alias { "/ICUDATA/en" } + } + // WARNING: this test assumes that on all platforms digits sort normally + // if not, the test may fail + testGetStringByKeyAliasing { + KeyAlias0PST:alias { "te/zoneStrings/2/0" } //"America/Los_Angeles", + KeyAlias1PacificStandardTime:alias { "te/zoneStrings/2/1" } //"Pacific Standard Time", + KeyAlias2PDT:alias { "te/zoneStrings/2/4" } //"PDT", + KeyAlias3LosAngeles:alias { "te/zoneStrings/2/5" } //"Los Angeles", + } + testGetStringByIndexAliasing { + :alias { "te/zoneStrings/2/0" } //"America/Los_Angeles", + :alias { "te/zoneStrings/2/1" } //"Pacific Standard Time", + :alias { "te/zoneStrings/2/4" } //"PDT", + :alias { "te/zoneStrings/2/5" } //"Los Angeles", + } + testAliasToTree:alias{"/ICUDATA-coll/en/collations"} + +} + +//eof + + |