]> git.saurik.com Git - apple/icu.git/blame - icuSources/test/testdata/testtypes.txt
ICU-3.13.tar.gz
[apple/icu.git] / icuSources / test / testdata / testtypes.txt
CommitLineData
b75a7d8f
A
1//*******************************************************************************
2//*
3//* Copyright (C) 1998-2003, International Business Machines
4//* Corporation and others. All Rights Reserved.
5//*
6//*******************************************************************************
7
8
9// This is a test resource to check new types of resources
10
11testtypes
12{
13 zerotest { "abc\u0000def" } // The length of this string should be 7, not 3
14 binarytest:bin { 000102030405060708090a0b0c0d0e } // Binary 15 bytes long
15 onehundredtwentythree:int {123 } //
16 one:int { 1 } // number one
17 importtest:import { "importtest.bin" }
18 integerarray:intvector { 1, 2, 3, -3, 4, 5, 6, 7 } // an array of 32-bit integers
19 minusone:int {-1} // number -1
20 plusone:int {1} // number 1
21
22 // Empties
23 emptyexplicitstring:string { "" }
24 emptystring { "" }
25 emptyintv:intvector { }
26 emptybin:bin { "" }
27 emptyint:int { "" }
28 emptytable:table { }
29 emptyarray:array
30 {
31 }
32 testescape{ "tab:\t cr:\r ff:\f newline:\n backslash:\\\\ quote=\\\' doubleQuote=\\\" singlequoutes=''" }
33
34 // genrb just includes the test as a string after converting to UTF-16
35
36 testincludeUTF:include{ "th18057.txt" }
37 // No unescaping is done.
38 testinclude:include{ "translit_rules.txt" }
39
40 // Genrb failed parsing \u0075 sequence this tests it
41 CollationElements{
42 Version{"x01"}
43 Sequence{
44 "&'\u0075' = '\uFF55'" // LATIN SMALL LETTER U
45 }
46 }
47
48 string{ }
49 stringTable{{}}
50 //nested table
51 menu {
52 file {
53 open { "Open" }
54 save { "Save" }
55 exit { "Exit" }
56 }
57 }
58 test_underscores{
59 "test message ...."
60 }
61 test_unescaping{"[ \\u0020 \\u00A0 \\u1680 \\u2000 \\u2001 \\u2002 \\u2003 \\u2004 \\u2005 \\u2006 \\u2007 "
62 "\\u2008 \\u2009 \\u200A \u200B \\u202F \u205F \\u3000 \u0000-\u001F \u007F \u0080-\u009F "
63 "\\u06DD \\u070F \\u180E \\u200C \\u200D \\u2028 \\u2029 \\u2060 \\u2061 \\u2062 \\u2063 "
64 "\\u206A-\\u206F \\uFEFF \\uFFF9-\uFFFC \U0001D173-\U0001D17A \U000F0000-\U000FFFFD "
65 "\U00100000-\U0010FFFD \uFDD0-\uFDEF \uFFFE-\uFFFF \U0001FFFE-\U0001FFFF \U0002FFFE-\U0002FFFF "
66 "\U0003FFFE-\U0003FFFF \U0004FFFE-\U0004FFFF \U0005FFFE-\U0005FFFF \U0006FFFE-\U0006FFFF "
67 "\U0007FFFE-\U0007FFFF \U0008FFFE-\U0008FFFF \U0009FFFE-\U0009FFFF \U000AFFFE-\U000AFFFF "
68 "\U000BFFFE-\U000BFFFF \U000CFFFE-\U000CFFFF \U000DFFFE-\U000DFFFF \U000EFFFE-\U000EFFFF "
69 "\U000FFFFE-\U000FFFFF \U0010FFFE-\U0010FFFF \uD800-\uDFFF \\uFFF9 \\uFFFA \\uFFFB "
70 "\uFFFC \uFFFD \u2FF0-\u2FFB \u0340 \u0341 \\u200E \\u200F \\u202A \\u202B \\u202C "
71 "\\u202D \\u202E \\u206A \\u206B \\u206C \\u206D \\u206E \\u206F \U000E0001 \U000E0020-\U000E007F "
72 "]"
73 }
74
75}
76
77//eof
78
79