Searched refs:numericTypes (Results 1 – 3 of 3) sorted by relevance
/system/tools/xsdc/tests/ |
D | tests.cpp | 42 NumericTypes numericTypes = *type.getFirstNumericTypes(); in TEST_F() local 75 EXPECT_EQ(numericTypes.getDecimal(), 1234.57); in TEST_F() 76 EXPECT_EQ(numericTypes.getInteger(), 1234567890123456789); in TEST_F() 77 EXPECT_EQ(numericTypes.get_long(), 9223372036854775807); in TEST_F() 78 EXPECT_EQ(numericTypes.get_int(), 2147483647); in TEST_F() 79 EXPECT_EQ(numericTypes.get_short(), 32767); in TEST_F() 80 EXPECT_EQ((int)numericTypes.getByte(), 127); in TEST_F() 81 EXPECT_EQ(numericTypes.getNegativeInteger(), -1234); in TEST_F() 82 EXPECT_EQ(numericTypes.getNonNegativeInteger(), 1234); in TEST_F() 83 EXPECT_EQ(numericTypes.getPositiveInteger(), 1234); in TEST_F() [all …]
|
/system/tools/xsdc/tests/src/com/android/xsdc/tests/ |
D | XmlParserTest.java | 158 predefined.types.NumericTypes numericTypes = type.getNumericTypes(); in testPredefinedTypes() local 160 assertThat(numericTypes.getDecimal(), is(new BigDecimal("1234.57"))); in testPredefinedTypes() 161 assertThat(numericTypes.getInteger(), is(new BigInteger("1234567890123456789"))); in testPredefinedTypes() 162 assertThat(numericTypes.get_long(), is(9223372036854775807L)); in testPredefinedTypes() 163 assertThat(numericTypes.get_int(), is(2147483647)); in testPredefinedTypes() 164 assertThat(numericTypes.get_short(), is((short) 32767)); in testPredefinedTypes() 165 assertThat(numericTypes.get_byte(), is((byte) 127)); in testPredefinedTypes() 166 assertThat(numericTypes.getNegativeInteger(), is(new BigInteger("-1234"))); in testPredefinedTypes() 167 assertThat(numericTypes.getNonNegativeInteger(), is(new BigInteger("1234"))); in testPredefinedTypes() 168 assertThat(numericTypes.getPositiveInteger(), is(new BigInteger("1234"))); in testPredefinedTypes() [all …]
|
/system/tools/xsdc/tests/resources/predefined_types/ |
D | predefined_types.xsd | 30 <xs:complexType name="numericTypes"> 106 <xs:element name="numericTypes" type="numericTypes"/>
|