Home
last modified time | relevance | path

Searched refs:formatted (Results 1 – 25 of 196) sorted by relevance

12345678

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/
DICUDurationTest.java179 String formatted; in TestBasics() local
182 formatted = df.formatDurationFromNow(4096); in TestBasics()
184 if(!expect.equals(formatted)) { in TestBasics()
185 errln("Expected " + expect + " but got " + formatted); in TestBasics()
187 logln("format duration -> " + formatted); in TestBasics()
190 formatted = df.formatDurationFromNowTo(new Date(0)); in TestBasics()
194 if(!expect.equals(formatted)) { in TestBasics()
195 errln("Expected " + expect + " but got " + formatted); in TestBasics()
197 logln("format date -> " + formatted); in TestBasics()
200 formatted = df.formatDurationFrom(1000*3600*24, new Date(0).getTime()); in TestBasics()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/
DICUDurationTest.java183 String formatted; in TestBasics() local
186 formatted = df.formatDurationFromNow(4096); in TestBasics()
188 if(!expect.equals(formatted)) { in TestBasics()
189 errln("Expected " + expect + " but got " + formatted); in TestBasics()
191 logln("format duration -> " + formatted); in TestBasics()
194 formatted = df.formatDurationFromNowTo(new Date(0)); in TestBasics()
198 if(!expect.equals(formatted)) { in TestBasics()
199 errln("Expected " + expect + " but got " + formatted); in TestBasics()
201 logln("format date -> " + formatted); in TestBasics()
204 formatted = df.formatDurationFrom(1000*3600*24, new Date(0).getTime()); in TestBasics()
[all …]
/external/dagger2/compiler/src/test/java/dagger/internal/codegen/
DMethodSignatureFormatterTest.java54 String formatted = new MethodSignatureFormatter(compilationRule.getTypes()).format(method); in methodSignatureTest() local
58 assertThat(formatted).contains("@Singleton"); in methodSignatureTest()
59 assertThat(formatted).doesNotContain("@javax.inject.Singleton"); // maybe more importantly in methodSignatureTest()
60 assertThat(formatted) in methodSignatureTest()
63 assertThat(formatted).contains(" String "); // return type compressed in methodSignatureTest()
64 assertThat(formatted).contains("int, ImmutableList<Boolean>)"); // parameters compressed. in methodSignatureTest()
/external/junit/src/junit/framework/
DAssert.java273 String formatted= ""; in failSame() local
275 formatted= message+" "; in failSame()
276 fail(formatted+"expected not same"); in failSame()
280 String formatted= ""; in failNotSame() local
282 formatted= message+" "; in failNotSame()
283 fail(formatted+"expected same:<"+expected+"> was not:<"+actual+">"); in failNotSame()
291 String formatted= ""; in format() local
293 formatted= message+" "; in format()
294 return formatted+"expected:<"+expected+"> but was:<"+actual+">"; in format()
DComparisonCompactor.java82 String formatted= ""; in format() local
84 formatted= message+" "; in format()
85 return formatted+"expected:<"+expected+"> but was:<"+actual+">"; in format()
/external/testng/src/main/java/org/testng/
DAssertJUnit.java348 String formatted = ""; in failSame() local
350 formatted = message + " "; in failSame()
352 fail(formatted + "expected not same"); in failSame()
356 String formatted = ""; in failNotSame() local
358 formatted = message + " "; in failNotSame()
360 fail(formatted + "expected same:<" + expected + "> was not:<" + actual + ">"); in failNotSame()
368 String formatted = ""; in format() local
370 formatted = message + " "; in format()
373 return formatted + "expected:<" + expected + "> but was:<" + actual + ">"; in format()
DFileAssert.java257 String formatted = ""; in failFile() local
259 formatted = message + " "; in failFile()
261 fail(formatted + "expected <" + expected +"> but was <" + toString(path) + ">" in failFile()
272 String formatted = ""; in failSecurity() local
274 formatted = message + " "; in failSecurity()
276 fail(formatted + "expected <" + expected +"> but was <" + toString(path) + ">" in failSecurity()
DAssert.java419 String formatted = ""; in assertNotNull() local
421 formatted = message + " "; in assertNotNull()
423 fail(formatted + "expected object to not be null"); in assertNotNull()
497 String formatted = ""; in failSame() local
499 formatted = message + " "; in failSame()
501 fail(formatted + ASSERT_LEFT2 + expected + ASSERT_MIDDLE + actual + ASSERT_RIGHT); in failSame()
505 String formatted = ""; in failNotSame() local
507 formatted = message + " "; in failNotSame()
509 fail(formatted + ASSERT_LEFT + expected + ASSERT_MIDDLE + actual + ASSERT_RIGHT); in failNotSame()
517 String formatted = ""; in format() local
[all …]
/external/junit/src/org/junit/
DAssert.java630 String formatted= ""; in failSame() local
632 formatted= message + " "; in failSame()
633 fail(formatted + "expected not same"); in failSame()
638 String formatted= ""; in failNotSame() local
640 formatted= message + " "; in failNotSame()
641 fail(formatted + "expected same:<" + expected + "> was not:<" + actual in failNotSame()
651 String formatted= ""; in format() local
653 formatted= message + " "; in format()
657 return formatted + "expected: " in format()
661 return formatted + "expected:<" + expectedString + "> but was:<" in format()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DTimeUnitTest.java75 String formatted = formats[style].format(source); in TestBasic() local
77 logln(tests[i] + " => " + formatted); in TestBasic()
81 … TimeUnitAmount result = (TimeUnitAmount) formats[parseStyle].parseObject(formatted); in TestBasic()
83 … errln("No round trip: " + source + " => " + formatted + " => " + result); in TestBasic()
232 String formatted; in TestGreek() local
241 formatted = timeUnitFormat.format(timeUnitAmount); in TestGreek()
248 expected[counter], formatted); in TestGreek()
299 String formatted = format.format(source); in formatParsing() local
301 logln(tests[i] + " => " + formatted); in formatParsing()
303 TimeUnitAmount result = (TimeUnitAmount) format.parseObject(formatted); in formatParsing()
[all …]
DDateTimeGeneratorTest.java235 String formatted = sdf.format(date); in TestBasic() local
236 …EST_DATA) logln("new String[] {\"" + testSkeleton + "\", \"" + Utility.escape(formatted) + "\"},"); in TestBasic()
244 String formatted = sdf.format(date); in TestBasic() local
246 … logln("new String[] {\"" + testSkeleton + "\", \"" + Utility.escape(formatted) + "\"},"); in TestBasic()
247 } else if (!formatted.equals(testFormatted)) { in TestBasic()
248 …Skeleton + "\t generated: " + pattern + "\t expected: " + testFormatted + "\t got: " + formatted); in TestBasic()
252 formatted = sdf.format(date); in TestBasic()
495 String formatted = formatter.format(new Date()); in DayMonthTest() local
496 logln("formatted=" + formatted); in DayMonthTest()
547 String formatted = newFormat.format(testDate); in TestReplacingZoneString() local
[all …]
DDateIntervalFormatTest.java712 String formatted = dtitvfmt.format(dtitv); in expect() local
713 if ( !formatted.equals(Utility.unescape(expected)) ) { in expect()
714 … + "\\" + datestr + "\\" + datestr_2 + "\"\t expected: " + expected +"\tgot: " + formatted + "\n"); in expect()
807 String formatted = dtitvfmt.format(dtitv); in expectUserDII() local
808 if ( !formatted.equals(Utility.unescape(expected)) ) { in expectUserDII()
809 … + "\\" + datestr + "\\" + datestr_2 + "\"\t expected: " + expected +"\tgot: " + formatted + "\n"); in expectUserDII()
893 String formatted = dtitvfmt.format(dtitv).toString(); in expectUserCLDR() local
894 if ( !formatted.equals(Utility.unescape(expected)) ) { in expectUserCLDR()
895 … + "\\" + datestr + "\\" + datestr_2 + "\"\t expected: " + expected +"\tgot: " + formatted + "\n"); in expectUserCLDR()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DTimeUnitTest.java79 String formatted = formats[style].format(source); in TestBasic() local
81 logln(tests[i] + " => " + formatted); in TestBasic()
85 … TimeUnitAmount result = (TimeUnitAmount) formats[parseStyle].parseObject(formatted); in TestBasic()
87 … errln("No round trip: " + source + " => " + formatted + " => " + result); in TestBasic()
236 String formatted; in TestGreek() local
245 formatted = timeUnitFormat.format(timeUnitAmount); in TestGreek()
252 expected[counter], formatted); in TestGreek()
303 String formatted = format.format(source); in formatParsing() local
305 logln(tests[i] + " => " + formatted); in formatParsing()
307 TimeUnitAmount result = (TimeUnitAmount) format.parseObject(formatted); in formatParsing()
[all …]
DDateTimeGeneratorTest.java239 String formatted = sdf.format(date); in TestBasic() local
240 …EST_DATA) logln("new String[] {\"" + testSkeleton + "\", \"" + Utility.escape(formatted) + "\"},"); in TestBasic()
248 String formatted = sdf.format(date); in TestBasic() local
250 … logln("new String[] {\"" + testSkeleton + "\", \"" + Utility.escape(formatted) + "\"},"); in TestBasic()
251 } else if (!formatted.equals(testFormatted)) { in TestBasic()
252 …Skeleton + "\t generated: " + pattern + "\t expected: " + testFormatted + "\t got: " + formatted); in TestBasic()
256 formatted = sdf.format(date); in TestBasic()
499 String formatted = formatter.format(new Date()); in DayMonthTest() local
500 logln("formatted=" + formatted); in DayMonthTest()
551 String formatted = newFormat.format(testDate); in TestReplacingZoneString() local
[all …]
DDateIntervalFormatTest.java716 String formatted = dtitvfmt.format(dtitv); in expect() local
717 if ( !formatted.equals(Utility.unescape(expected)) ) { in expect()
718 … + "\\" + datestr + "\\" + datestr_2 + "\"\t expected: " + expected +"\tgot: " + formatted + "\n"); in expect()
811 String formatted = dtitvfmt.format(dtitv); in expectUserDII() local
812 if ( !formatted.equals(Utility.unescape(expected)) ) { in expectUserDII()
813 … + "\\" + datestr + "\\" + datestr_2 + "\"\t expected: " + expected +"\tgot: " + formatted + "\n"); in expectUserDII()
897 String formatted = dtitvfmt.format(dtitv).toString(); in expectUserCLDR() local
898 if ( !formatted.equals(Utility.unescape(expected)) ) { in expectUserCLDR()
899 … + "\\" + datestr + "\\" + datestr_2 + "\"\t expected: " + expected +"\tgot: " + formatted + "\n"); in expectUserCLDR()
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/
DPrettyPrinterTest.java33 String formatted = PRETTY_PRINTER.format(expected); in TestBasicUnicodeSet() local
34 logln(formatted); in TestBasicUnicodeSet()
35 UnicodeSet actual = new UnicodeSet(formatted); in TestBasicUnicodeSet()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/translit/
DPrettyPrinterTest.java37 String formatted = PRETTY_PRINTER.format(expected); in TestBasicUnicodeSet() local
38 logln(formatted); in TestBasicUnicodeSet()
39 UnicodeSet actual = new UnicodeSet(formatted); in TestBasicUnicodeSet()
/external/v8/benchmarks/
Dbase.js127 var formatted = BenchmarkSuite.FormatScore(100 * score);
128 runner.NotifyScore(formatted);
182 var formatted = BenchmarkSuite.FormatScore(100 * score);
183 this.runner.NotifyResult(this.name, formatted);
/external/markdown/tests/misc/
Dpre.txt9 * and this is pre-formatted content
11 * and not formatted as a list
/external/v8/src/
Dstring-stream.cc137 EmbeddedVector<char, 24> formatted; in Add() local
138 int length = SNPrintF(formatted, temp.start(), value); in Add()
139 Add(Vector<const char>(formatted.start(), length)); in Add()
152 EmbeddedVector<char, 28> formatted; in Add() local
153 SNPrintF(formatted, temp.start(), value); in Add()
154 Add(formatted.start()); in Add()
160 EmbeddedVector<char, 20> formatted; in Add() local
161 SNPrintF(formatted, temp.start(), value); in Add()
162 Add(formatted.start()); in Add()
/external/icu/icu4c/source/test/cintltst/
Dudatpg_test.c251 UChar pattern[40], formatted[40]; in TestBuilder() local
360 formattedCapacity = (int32_t)(sizeof(formatted)/sizeof((formatted)[0])); in TestBuilder()
361 resultLen=udat_format(formatter, ucal_getNow(), formatted, formattedCapacity, in TestBuilder()
366 resultLen=udat_format(formatter, sampleDate, formatted, formattedCapacity, in TestBuilder()
368 if ( u_memcmp(sampleFormatted, formatted, resultLen) != 0 ) { in TestBuilder()
/external/avahi/docs/
DDBUS-API3 since it was no longer up to date you should now read the XML-formatted DBUS
8 Opening them in a web browser is a good way to view them as they are formatted
/external/icu/icu4c/source/test/intltest/
Dtufmtts.cpp132 UnicodeString formatted; in testBasic() local
135 formatted = ((Format*)formats[style])->format(formattable, formatted, status); in testBasic()
139 formatted.extract(0, formatted.length(), formatResult, "UTF-8"); in testBasic()
143 ((Format*)formats[style])->parseObject(formatted, result, status); in testBasic()
150 ((Format*)formats[1-style])->parseObject(formatted, result_1, status); in testBasic()
/external/v8/test/js-perf-test/
Dbase.js146 var formatted = BenchmarkSuite.FormatScore(100 * score);
147 runner.NotifyScore(formatted);
229 var formatted = BenchmarkSuite.FormatScore(100 * score);
230 this.runner.NotifyResult(this.name, formatted);
/external/vogar/src/vogar/
DConsole.java291 String formatted; in formatElapsedTime() local
294 formatted = String.format("%d days ago", days); in formatElapsedTime()
297 formatted = String.format("%d hours ago", hours); in formatElapsedTime()
299 formatted = "less than an hour ago"; in formatElapsedTime()
303 return colorString(formatted, color); in formatElapsedTime()

12345678