• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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{ "riwords.txt" }
37    // No unescaping is done.
38    testinclude:include{ "translit_rules.txt" }
39
40    // Genrb failed parsing \u0075 sequence this tests it
41    collations {
42      standard {
43	Version{"x01"}
44	Sequence{
45		       "&'\u0075' = '\uFF55'" // LATIN SMALL LETTER U
46		}
47      }
48    }
49
50    string{ }
51    stringTable{{}}
52    //nested table
53    menu {
54        file {
55		 open { "Open" }
56	         save { "Save" }
57	         exit { "Exit" }
58	     }
59      }
60    test_underscores{
61        "test message ...."
62    }
63    test_unescaping{"[ \\u0020 \\u00A0 \\u1680 \\u2000 \\u2001 \\u2002 \\u2003 \\u2004 \\u2005 \\u2006 \\u2007 "
64			"\\u2008 \\u2009 \\u200A \u200B \\u202F \u205F \\u3000 \u0000-\u001F \u007F \u0080-\u009F "
65			"\\u06DD \\u070F \\u180E \\u200C \\u200D \\u2028 \\u2029 \\u2060 \\u2061 \\u2062 \\u2063 "
66			"\\u206A-\\u206F \\uFEFF \\uFFF9-\uFFFC \U0001D173-\U0001D17A \U000F0000-\U000FFFFD "
67			"\U00100000-\U0010FFFD \uFDD0-\uFDEF \uFFFE-\uFFFF \U0001FFFE-\U0001FFFF \U0002FFFE-\U0002FFFF "
68			"\U0003FFFE-\U0003FFFF \U0004FFFE-\U0004FFFF \U0005FFFE-\U0005FFFF \U0006FFFE-\U0006FFFF "
69			"\U0007FFFE-\U0007FFFF \U0008FFFE-\U0008FFFF \U0009FFFE-\U0009FFFF \U000AFFFE-\U000AFFFF "
70			"\U000BFFFE-\U000BFFFF \U000CFFFE-\U000CFFFF \U000DFFFE-\U000DFFFF \U000EFFFE-\U000EFFFF "
71			"\U000FFFFE-\U000FFFFF \U0010FFFE-\U0010FFFF \uD800-\uDFFF \\uFFF9 \\uFFFA \\uFFFB "
72			"\uFFFC \uFFFD \u2FF0-\u2FFB \u0340 \u0341 \\u200E \\u200F \\u202A \\u202B \\u202C "
73			"\\u202D \\u202E \\u206A \\u206B \\u206C \\u206D \\u206E \\u206F \U000E0001 \U000E0020-\U000E007F "
74			"]"
75		   }
76
77}
78
79//eof
80
81
82