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