/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/ |
D | NumberStringBuilderTest.java | 33 NumberStringBuilder sb2 = new NumberStringBuilder(); in testInsertAppendCharSequence() local 37 sb2.append(str, null); in testInsertAppendCharSequence() 39 assertCharSequenceEquals(sb1, sb2); in testInsertAppendCharSequence() 85 NumberStringBuilder sb2 = new NumberStringBuilder(); in testSplice() local 95 sb2.clear(); in testSplice() 96 sb2.append(input, null); in testSplice() 97 sb2.splice(startThis, endThis, replacement, 0, replacement.length(), null); in testSplice() 98 assertCharSequenceEquals(sb1, sb2); in testSplice() 107 sb2.clear(); in testSplice() 108 sb2.append(input, null); in testSplice() [all …]
|
D | ModifierTest.java | 108 NumberStringBuilder sb2 = new NumberStringBuilder(sb); in testCurrencySpacingEnabledModifier() local 109 sb2.insert(0, "USD", NumberFormat.Field.CURRENCY); in testCurrencySpacingEnabledModifier() 110 CurrencySpacingEnabledModifier.applyCurrencySpacing(sb2, 0, 3, 6, 0, symbols); in testCurrencySpacingEnabledModifier() 111 assertTrue(sb1.toDebugString() + " vs " + sb2.toDebugString(), sb1.contentEquals(sb2)); in testCurrencySpacingEnabledModifier()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/ |
D | NumberStringBuilderTest.java | 36 NumberStringBuilder sb2 = new NumberStringBuilder(); in testInsertAppendCharSequence() local 40 sb2.append(str, null); in testInsertAppendCharSequence() 42 assertCharSequenceEquals(sb1, sb2); in testInsertAppendCharSequence() 88 NumberStringBuilder sb2 = new NumberStringBuilder(); in testSplice() local 98 sb2.clear(); in testSplice() 99 sb2.append(input, null); in testSplice() 100 sb2.splice(startThis, endThis, replacement, 0, replacement.length(), null); in testSplice() 101 assertCharSequenceEquals(sb1, sb2); in testSplice() 110 sb2.clear(); in testSplice() 111 sb2.append(input, null); in testSplice() [all …]
|
D | ModifierTest.java | 111 NumberStringBuilder sb2 = new NumberStringBuilder(sb); in testCurrencySpacingEnabledModifier() local 112 sb2.insert(0, "USD", NumberFormat.Field.CURRENCY); in testCurrencySpacingEnabledModifier() 113 CurrencySpacingEnabledModifier.applyCurrencySpacing(sb2, 0, 3, 6, 0, symbols); in testCurrencySpacingEnabledModifier() 114 assertTrue(sb1.toDebugString() + " vs " + sb2.toDebugString(), sb1.contentEquals(sb2)); in testCurrencySpacingEnabledModifier()
|
/external/libcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted/ |
D | get_streambuf.pass.cpp | 61 testbuf<char> sb2; in main() local 62 is.get(sb2); in main() 63 assert(sb2.str() == "testing"); in main() 67 is.get(sb2); in main() 68 assert(sb2.str() == "testing..."); in main() 76 testbuf<wchar_t> sb2; in main() local 77 is.get(sb2); in main() 78 assert(sb2.str() == L"testing"); in main() 82 is.get(sb2); in main() 83 assert(sb2.str() == L"testing..."); in main()
|
D | get_streambuf_chart.pass.cpp | 62 testbuf<char> sb2; in main() local 63 is.get(sb2, '*'); in main() 64 assert(sb2.str() == "testing"); in main() 68 is.get(sb2, '*'); in main() 69 assert(sb2.str() == "testing..."); in main() 77 testbuf<wchar_t> sb2; in main() local 78 is.get(sb2, L'*'); in main() 79 assert(sb2.str() == L"testing"); in main() 83 is.get(sb2, L'*'); in main() 84 assert(sb2.str() == L"testing..."); in main()
|
/external/icu/icu4c/source/test/intltest/ |
D | numbertest_stringbuilder.cpp | 38 NumberStringBuilder sb2; in testInsertAppendUnicodeString() local 45 sb2.append(str, UNUM_FIELD_COUNT, status); in testInsertAppendUnicodeString() 49 assertEqualsImpl(sb1, sb2); in testInsertAppendUnicodeString() 97 NumberStringBuilder sb2; in testSplice() local 106 sb2.clear(); in testSplice() 107 sb2.append(cas.input, UNUM_FIELD_COUNT, status); in testSplice() 108 …sb2.splice(cas.startThis, cas.endThis, replacement, 0, replacement.length(), UNUM_FIELD_COUNT, sta… in testSplice() 110 assertEqualsImpl(sb1, sb2); in testSplice() 119 sb2.clear(); in testSplice() 120 sb2.append(cas.input, UNUM_FIELD_COUNT, status); in testSplice() [all …]
|
D | numbertest_modifiers.cpp | 131 NumberStringBuilder sb2(sb); in testCurrencySpacingEnabledModifier() local 132 sb2.insert(0, "USD", UNUM_CURRENCY_FIELD, status); in testCurrencySpacingEnabledModifier() 134 CurrencySpacingEnabledModifier::applyCurrencySpacing(sb2, 0, 3, 6, 0, symbols, status); in testCurrencySpacingEnabledModifier() 136 assertTrue(sb1.toDebugString() + " vs " + sb2.toDebugString(), sb1.contentEquals(sb2)); in testCurrencySpacingEnabledModifier()
|
/external/libcxx/test/std/input.output/iostream.format/input.streams/iostreamclass/iostream.assign/ |
D | move_assign.pass.cpp | 46 testbuf<char> sb2; in main() local 48 test_iostream<char> is2(&sb2); in main() 58 assert(is2.rdbuf() == &sb2); in main() 69 testbuf<wchar_t> sb2; in main() local 71 test_iostream<wchar_t> is2(&sb2); in main() 81 assert(is2.rdbuf() == &sb2); in main()
|
D | member_swap.pass.cpp | 41 testbuf<char> sb2; in main() local 43 test_iostream<char> is2(&sb2); in main() 53 assert(is2.rdbuf() == &sb2); in main() 64 testbuf<wchar_t> sb2; in main() local 66 test_iostream<wchar_t> is2(&sb2); in main() 76 assert(is2.rdbuf() == &sb2); in main()
|
/external/libcxx/test/std/input.output/iostream.format/output.streams/ostream.assign/ |
D | member_swap.pass.cpp | 41 testbuf<char> sb2; in main() local 43 test_ostream<char> os2(&sb2); in main() 53 assert(os2.rdbuf() == &sb2); in main() 64 testbuf<wchar_t> sb2; in main() local 66 test_ostream<wchar_t> os2(&sb2); in main() 76 assert(os2.rdbuf() == &sb2); in main()
|
D | move_assign.pass.cpp | 46 testbuf<char> sb2; in main() local 48 test_ostream<char> os2(&sb2); in main() 58 assert(os2.rdbuf() == &sb2); in main() 69 testbuf<wchar_t> sb2; in main() local 71 test_ostream<wchar_t> os2(&sb2); in main() 81 assert(os2.rdbuf() == &sb2); in main()
|
/external/libcxx/test/std/input.output/iostream.format/input.streams/istream/istream.assign/ |
D | member_swap.pass.cpp | 41 testbuf<char> sb2; in main() local 43 test_istream<char> is2(&sb2); in main() 53 assert(is2.rdbuf() == &sb2); in main() 64 testbuf<wchar_t> sb2; in main() local 66 test_istream<wchar_t> is2(&sb2); in main() 76 assert(is2.rdbuf() == &sb2); in main()
|
D | move_assign.pass.cpp | 46 testbuf<char> sb2; in main() local 48 test_istream<char> is2(&sb2); in main() 58 assert(is2.rdbuf() == &sb2); in main() 69 testbuf<wchar_t> sb2; in main() local 71 test_istream<wchar_t> is2(&sb2); in main() 81 assert(is2.rdbuf() == &sb2); in main()
|
/external/libcxx/test/std/input.output/iostreams.base/ios/basic.ios.members/ |
D | rdbuf_streambuf.pass.cpp | 26 std::streambuf* sb2 = ios.rdbuf(sb); in main() local 27 assert(sb2 == 0); in main() 30 sb2 = ios.rdbuf(0); in main() 31 assert(sb2 == (std::streambuf*)1); in main()
|
D | set_rdbuf.pass.cpp | 37 testbuf sb2; in main() local 50 ios.set_rdbuf(&sb2); in main() 51 assert(ios.rdbuf() == &sb2); in main()
|
D | move.pass.cpp | 84 testbuf sb2; in main() local 85 std::ios ios2(&sb2); in main() 138 assert(ios2.rdbuf() == &sb2); in main()
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/tar/ |
D | TarUtilsTest.java | 40 String sb2 = TarUtils.parseName(buff, 1, 10); in testName() local 41 assertEquals(sb2,sb1.substring(0,10)); in testName() 42 sb2 = TarUtils.parseName(buff, 1, 19); in testName() 43 assertEquals(sb2,sb1.substring(0,19)); in testName() 47 sb2 = TarUtils.parseName(buff, 1, buff.length-1); in testName() 48 assertEquals(sb1, sb2); in testName() 50 sb2 = TarUtils.parseName(buff, 0, 3); in testName() 51 assertEquals("", sb2); in testName()
|
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/ |
D | JoinerTest.java | 139 StringBuilder sb2 = new StringBuilder(); in checkNoOutput() local 140 assertSame(sb2, joiner.appendTo(sb2, array)); in checkNoOutput() 141 assertEquals(0, sb2.length()); in checkNoOutput() 192 StringBuilder sb2 = new StringBuilder().append('x'); in checkResult() local 193 joiner.appendTo(sb2, partsArray); in checkResult() 194 assertEquals("x" + expected, sb2.toString()); in checkResult() 293 StringBuilder sb2 = new StringBuilder(); in testEntries() local 294 j.appendTo(sb2, ImmutableMultimap.of(1, 2, 3, 4, 5, 6, 1, 3, 5, 10).entries().iterator()); in testEntries() 295 assertEquals("1:2;1:3;3:4;5:6;5:10", sb2.toString()); in testEntries()
|
/external/guava/guava-tests/test/com/google/common/base/ |
D | JoinerTest.java | 141 StringBuilder sb2 = new StringBuilder(); in checkNoOutput() local 142 assertSame(sb2, joiner.appendTo(sb2, array)); in checkNoOutput() 143 assertEquals(0, sb2.length()); in checkNoOutput() 194 StringBuilder sb2 = new StringBuilder().append('x'); in checkResult() local 195 joiner.appendTo(sb2, partsArray); in checkResult() 196 assertEquals("x" + expected, sb2.toString()); in checkResult() 295 StringBuilder sb2 = new StringBuilder(); in testEntries() local 296 j.appendTo(sb2, ImmutableMultimap.of(1, 2, 3, 4, 5, 6, 1, 3, 5, 10).entries().iterator()); in testEntries() 297 assertEquals("1:2;1:3;3:4;5:6;5:10", sb2.toString()); in testEntries()
|
/external/libcxx/test/std/input.output/iostream.format/input.streams/istream.formatted/istream_extractors/ |
D | streambuf.pass.cpp | 64 testbuf<char> sb2; in main() local 65 is >> &sb2; in main() 66 assert(sb2.str() == "testing..."); in main()
|
/external/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/ |
D | pointer.pass.cpp | 69 testbuf<char> sb2; in main() local 70 std::ostream os2(&sb2); in main() 74 std::string s2(sb2.str()); in main()
|
/external/libcxx/test/std/input.output/iostream.format/output.streams/ostream_sentry/ |
D | construct.pass.cpp | 53 testbuf1<char> sb2; in main() local 54 std::ostream os2(&sb2); in main()
|
/external/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters/ |
D | streambuf.pass.cpp | 64 testbuf<char> sb2("testing..."); in main() local 66 os << &sb2; in main()
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | shaped_buffer_test.cc | 102 ScopedShapedBuffer sb2(s, s, &allocator, /*device_ordinal=*/1); in TEST() local 103 sb2.set_buffer( in TEST() 107 sb1 = std::move(sb2); in TEST()
|