Home
last modified time | relevance | path

Searched refs:numericTypes (Results 1 – 3 of 3) sorted by relevance

/system/tools/xsdc/tests/
Dmain.cpp56 NumericTypes numericTypes = *type.getFirstNumericTypes(); in TEST_F() local
89 EXPECT_EQ(numericTypes.getDecimal(), 1234.57); in TEST_F()
90 EXPECT_EQ(numericTypes.getInteger(), 1234567890123456789); in TEST_F()
91 EXPECT_EQ(numericTypes.get_long(), 9223372036854775807); in TEST_F()
92 EXPECT_EQ(numericTypes.get_int(), 2147483647); in TEST_F()
93 EXPECT_EQ(numericTypes.get_short(), 32767); in TEST_F()
94 EXPECT_EQ((int)numericTypes.getByte(), 127); in TEST_F()
95 EXPECT_EQ(numericTypes.getNegativeInteger(), -1234); in TEST_F()
96 EXPECT_EQ(numericTypes.getNonNegativeInteger(), 1234); in TEST_F()
97 EXPECT_EQ(numericTypes.getPositiveInteger(), 1234); in TEST_F()
[all …]
/system/tools/xsdc/tests/src/com/android/xsdc/tests/
DXmlParserTest.java150 Class<?> numericTypes = result.loadClass("NumericTypes"); in testPredefinedTypes() local
226 BigDecimal decimal = (BigDecimal) numericTypes.getMethod("getDecimal").invoke( in testPredefinedTypes()
228 BigInteger integer = (BigInteger) numericTypes.getMethod("getInteger").invoke( in testPredefinedTypes()
230 long _long = (long) numericTypes.getMethod("get_long").invoke(numericTypesInstance); in testPredefinedTypes()
231 int _int = (int) numericTypes.getMethod("get_int").invoke(numericTypesInstance); in testPredefinedTypes()
232 short _short = (short) numericTypes.getMethod("get_short").invoke(numericTypesInstance); in testPredefinedTypes()
233 byte _byte = (byte) numericTypes.getMethod("get_byte").invoke(numericTypesInstance); in testPredefinedTypes()
234 BigInteger negativeInteger = (BigInteger) numericTypes.getMethod( in testPredefinedTypes()
236 BigInteger nonNegativeInteger = (BigInteger) numericTypes.getMethod( in testPredefinedTypes()
238 BigInteger positiveInteger = (BigInteger) numericTypes.getMethod( in testPredefinedTypes()
[all …]
/system/tools/xsdc/tests/resources/predefined_types/
Dpredefined_types.xsd30 <xs:complexType name="numericTypes">
106 <xs:element name="numericTypes" type="numericTypes"/>