Home
last modified time | relevance | path

Searched refs:assertParsed (Results 1 – 5 of 5) sorted by relevance

/libcore/json/src/test/java/libcore/org/json/
DParsingTest.java43 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/
DTestZoneOffsetParser.java102 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 …]
DTestFractionPrinterParser.java248assertParsed(parsed, NANO_OF_SECOND, value == 0 && minWidth == 0 ? null : (long) expectedValue); in test_reverseParse()
257assertParsed(parsed, NANO_OF_SECOND, value == 0 && minWidth == 0 ? null : (long) expectedValue); in test_reverseParse_noDecimalPoint()
266assertParsed(parsed, NANO_OF_SECOND, value == 0 && minWidth == 0 ? null : (long) expectedValue); in test_reverseParse_followedByNonDigit()
284assertParsed(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
DTestReducedParser.java134 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/
DDecimalFormatTest.java722 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 …]