/libcore/json/src/test/java/libcore/org/json/ |
D | ParsingTest.java | 43 assertParsed(Boolean.TRUE, "true"); in testParsingLiterals() 44 assertParsed(Boolean.FALSE, "false"); in testParsingLiterals() 45 assertParsed(JSONObject.NULL, "null"); in testParsingLiterals() 46 assertParsed(JSONObject.NULL, "NULL"); in testParsingLiterals() 47 assertParsed(Boolean.FALSE, "False"); in testParsingLiterals() 48 assertParsed(Boolean.TRUE, "truE"); in testParsingLiterals() 52 assertParsed("abc", "\"abc\""); in testParsingQuotedStrings() 53 assertParsed("123", "\"123\""); in testParsingQuotedStrings() 54 assertParsed("foo\nbar", "\"foo\\nbar\""); in testParsingQuotedStrings() 55 assertParsed("foo bar", "\"foo\\u0020bar\""); in testParsingQuotedStrings() [all …]
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestZoneOffsetParser.java | 102 assertParsed(parsed, ZoneOffset.UTC); in test_parse_exactMatch_UTC() 109 assertParsed(parsed, ZoneOffset.UTC); in test_parse_startStringMatch_UTC() 116 assertParsed(parsed, ZoneOffset.UTC); in test_parse_midStringMatch_UTC() 123 assertParsed(parsed, ZoneOffset.UTC); in test_parse_endStringMatch_UTC() 131 assertParsed(parsed, ZoneOffset.UTC); in test_parse_exactMatch_UTC_EmptyUTC() 138 assertParsed(parsed, ZoneOffset.UTC); in test_parse_startStringMatch_UTC_EmptyUTC() 145 assertParsed(parsed, ZoneOffset.UTC); in test_parse_midStringMatch_UTC_EmptyUTC() 152 assertParsed(parsed, ZoneOffset.UTC); in test_parse_endStringMatch_UTC_EmptyUTC() 236 assertParsed(parsed, expected); in test_parse_exactMatch() 244 assertParsed(parsed, expected); in test_parse_startStringMatch() [all …]
|
D | TestFractionPrinterParser.java | 248 … assertParsed(parsed, NANO_OF_SECOND, value == 0 && minWidth == 0 ? null : (long) expectedValue); in test_reverseParse() 257 … assertParsed(parsed, NANO_OF_SECOND, value == 0 && minWidth == 0 ? null : (long) expectedValue); in test_reverseParse_noDecimalPoint() 266 … assertParsed(parsed, NANO_OF_SECOND, value == 0 && minWidth == 0 ? null : (long) expectedValue); in test_reverseParse_followedByNonDigit() 284 … assertParsed(parsed, NANO_OF_SECOND, value == 0 && minWidth == 0 ? null : (long) expectedValue); in test_reverseParse_preceededByNonDigit() 300 assertParsed(parsed, SECOND_OF_MINUTE, value == 0 && minWidth == 0 ? null : (long) value); in test_reverseParse_seconds() 303 private void assertParsed(TemporalAccessor parsed, TemporalField field, Long value) { in assertParsed() method in TestFractionPrinterParser
|
D | TestReducedParser.java | 134 assertParsed(parsed, DAY_OF_YEAR, 456L); // parsed dayOfYear=456 in test_parse_fieldRangeIgnored() 195 assertParsed(parsed, YEAR, parseVal != null ? (long) parseVal : null); in test_parseAllStrict() 209 assertParsed(parsed, YEAR, parseVal != null ? (long) parseVal : null); in test_parseAllLenient() 282 assertParsed(parsed, YEAR, strict.parseVal != null ? (long) strict.parseVal : null); in test_parseStrict() 297 assertParsed(parsed, YEAR, strict.parseVal != null ? (long) strict.parseVal : null); in test_parseStrict_baseDate() 315 assertParsed(parsed, YEAR, lenient.parseVal != null ? (long) lenient.parseVal : null); in test_parseLenient() 330 assertParsed(parsed, YEAR, lenient.parseVal != null ? (long) lenient.parseVal : null); in test_parseLenient_baseDate() 334 private void assertParsed(TemporalAccessor parsed, TemporalField field, Long value) { in assertParsed() method in TestReducedParser 380 assertParsed(parsed, YEAR_OF_ERA, Long.valueOf(year)); in test_parseAdjacent() 381 assertParsed(parsed, MONTH_OF_YEAR, Long.valueOf(month)); in test_parseAdjacent() [all …]
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | DecimalFormatTest.java | 722 assertParsed("0", "1 ", 1, 1); in testWhitespaceTolerated() 724 assertParsed("0", "1 2", 1, 1); in testWhitespaceTolerated() 726 assertParsed("0", "1. 1", 1, 2); in testWhitespaceTolerated() 728 assertParsed("0", "1 .1", 1, 1); in testWhitespaceTolerated() 730 assertParsed("0", "1.2 3", 1.2d, 3); in testWhitespaceTolerated() 732 assertParsed("0; 0", " 1 ", -1, 2); in testWhitespaceTolerated() 734 assertParsed(" 0", " 1 ", 1, 2); in testWhitespaceTolerated() 758 assertParsed("0", "1\u200e", 1, 1); in testParseBidi() 777 assertParsed("###0", "9,9999", 9, 1); in testParseGroupingSeparator() 778 assertParsed("###0", "9,999", 9, 1); in testParseGroupingSeparator() [all …]
|