Home
last modified time | relevance | path

Searched refs:sb2 (Results 1 – 25 of 65) sorted by relevance

123

/external/cronet/buildtools/third_party/libc++/trunk/test/std/input.output/iostream.format/input.streams/istream.unformatted/
Dget_streambuf.pass.cpp64 testbuf<char> sb2; in main() local
65 is.get(sb2); in main()
66 assert(sb2.str() == "testing"); in main()
70 is.get(sb2); in main()
71 assert(sb2.str() == "testing..."); in main()
80 testbuf<wchar_t> sb2; in main() local
81 is.get(sb2); in main()
82 assert(sb2.str() == L"testing"); in main()
86 is.get(sb2); in main()
87 assert(sb2.str() == L"testing..."); in main()
[all …]
Dget_streambuf_chart.pass.cpp64 testbuf<char> sb2; in main() local
65 is.get(sb2, '*'); in main()
66 assert(sb2.str() == "testing"); in main()
70 is.get(sb2, '*'); in main()
71 assert(sb2.str() == "testing..."); in main()
80 testbuf<wchar_t> sb2; in main() local
81 is.get(sb2, L'*'); in main()
82 assert(sb2.str() == L"testing"); in main()
86 is.get(sb2, L'*'); in main()
87 assert(sb2.str() == L"testing..."); in main()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DFormattedStringBuilderTest.java33 FormattedStringBuilder sb2 = new FormattedStringBuilder(); in testInsertAppendCharSequence() local
37 sb2.append(str, null); in testInsertAppendCharSequence()
39 assertCharSequenceEquals(str, sb1, sb2); in testInsertAppendCharSequence()
85 FormattedStringBuilder sb2 = new FormattedStringBuilder(); 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(input, sb1, sb2); in testSplice()
107 sb2.clear(); in testSplice()
108 sb2.append(input, null); in testSplice()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DFormattedStringBuilderTest.java36 FormattedStringBuilder sb2 = new FormattedStringBuilder(); in testInsertAppendCharSequence() local
40 sb2.append(str, null); in testInsertAppendCharSequence()
42 assertCharSequenceEquals(str, sb1, sb2); in testInsertAppendCharSequence()
88 FormattedStringBuilder sb2 = new FormattedStringBuilder(); 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(input, sb1, sb2); in testSplice()
110 sb2.clear(); in testSplice()
111 sb2.append(input, null); in testSplice()
[all …]
/external/libcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted/
Dget_streambuf.pass.cpp61 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()
Dget_streambuf_chart.pass.cpp62 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/cronet/third_party/icu/source/test/intltest/
Dformatted_string_builder_test.cpp61 FormattedStringBuilder sb2; in testInsertAppendUnicodeString() local
67 sb2.append(str, kUndefinedField, status); in testInsertAppendUnicodeString()
71 assertEqualsImpl(sb1, sb2); in testInsertAppendUnicodeString()
119 FormattedStringBuilder sb2; in testSplice() local
128 sb2.clear(); in testSplice()
129 sb2.append(cas.input, kUndefinedField, status); in testSplice()
130sb2.splice(cas.startThis, cas.endThis, replacement, 0, replacement.length(), kUndefinedField, stat… in testSplice()
132 assertEqualsImpl(sb1, sb2); in testSplice()
141 sb2.clear(); in testSplice()
142 sb2.append(cas.input, kUndefinedField, status); in testSplice()
[all …]
/external/icu/icu4c/source/test/intltest/
Dformatted_string_builder_test.cpp61 FormattedStringBuilder sb2; in testInsertAppendUnicodeString() local
67 sb2.append(str, kUndefinedField, status); in testInsertAppendUnicodeString()
71 assertEqualsImpl(sb1, sb2); in testInsertAppendUnicodeString()
119 FormattedStringBuilder sb2; in testSplice() local
128 sb2.clear(); in testSplice()
129 sb2.append(cas.input, kUndefinedField, status); in testSplice()
130sb2.splice(cas.startThis, cas.endThis, replacement, 0, replacement.length(), kUndefinedField, stat… in testSplice()
132 assertEqualsImpl(sb1, sb2); in testSplice()
141 sb2.clear(); in testSplice()
142 sb2.append(cas.input, kUndefinedField, status); in testSplice()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/input.output/iostream.format/input.streams/istream.formatted/istream_extractors/
Dstreambuf.pass.cpp67 testbuf<char> sb2; in main() local
68 is >> &sb2; in main()
69 assert(sb2.str() == "testing..."); in main()
76 testbuf<char> sb2; in main() local
80 is >> &sb2; in main()
93 testbuf<wchar_t> sb2; in main() local
97 is >> &sb2; in main()
111 testbuf<char> sb2; in main() local
115 is >> &sb2; in main()
128 testbuf<wchar_t> sb2; in main() local
[all …]
/external/libcxx/test/std/input.output/iostream.format/output.streams/ostream.assign/
Dmove_assign.pass.cpp46 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()
Dmember_swap.pass.cpp41 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()
/external/cronet/buildtools/third_party/libc++/trunk/test/std/input.output/iostream.format/output.streams/ostream.assign/
Dmove_assign.pass.cpp45 testbuf<char> sb2; in main() local
47 test_ostream<char> os2(&sb2); in main()
57 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()
Dmember_swap.pass.cpp42 testbuf<char> sb2; in main() local
44 test_ostream<char> os2(&sb2); in main()
54 assert(os2.rdbuf() == &sb2); in main()
66 testbuf<wchar_t> sb2; in main() local
68 test_ostream<wchar_t> os2(&sb2); in main()
78 assert(os2.rdbuf() == &sb2); in main()
/external/libcxx/test/std/input.output/iostream.format/input.streams/iostreamclass/iostream.assign/
Dmove_assign.pass.cpp46 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()
Dmember_swap.pass.cpp41 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/input.streams/istream/istream.assign/
Dmove_assign.pass.cpp46 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()
Dmember_swap.pass.cpp41 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()
/external/cronet/buildtools/third_party/libc++/trunk/test/std/input.output/iostream.format/input.streams/iostreamclass/iostream.assign/
Dmove_assign.pass.cpp45 testbuf<char> sb2; in main() local
47 test_iostream<char> is2(&sb2); in main()
57 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()
Dmember_swap.pass.cpp42 testbuf<char> sb2; in main() local
44 test_iostream<char> is2(&sb2); in main()
54 assert(is2.rdbuf() == &sb2); in main()
66 testbuf<wchar_t> sb2; in main() local
68 test_iostream<wchar_t> is2(&sb2); in main()
78 assert(is2.rdbuf() == &sb2); in main()
/external/cronet/buildtools/third_party/libc++/trunk/test/std/input.output/iostream.format/input.streams/istream/istream.assign/
Dmember_swap.pass.cpp42 testbuf<char> sb2; in main() local
44 test_istream<char> is2(&sb2); in main()
54 assert(is2.rdbuf() == &sb2); in main()
66 testbuf<wchar_t> sb2; in main() local
68 test_istream<wchar_t> is2(&sb2); in main()
78 assert(is2.rdbuf() == &sb2); in main()
Dmove_assign.pass.cpp45 testbuf<char> sb2; in main() local
47 test_istream<char> is2(&sb2); in main()
57 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/cronet/buildtools/third_party/libc++/trunk/test/std/input.output/iostreams.base/ios/basic.ios.members/
Drdbuf_streambuf.pass.cpp27 std::streambuf* sb2 = ios.rdbuf(sb); in main() local
28 assert(sb2 == 0); in main()
31 sb2 = ios.rdbuf(0); in main()
32 assert(sb2 == (std::streambuf*)1); in main()
/external/libcxx/test/std/input.output/iostreams.base/ios/basic.ios.members/
Drdbuf_streambuf.pass.cpp26 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()
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/io/
DTestJsonStringEncoder.java47 StringBuilder sb2 = new StringBuilder(); in testQuoteLongAsString() local
50 sb2.append("\\\""); in testQuoteLongAsString()
53 String exp = sb2.toString(); in testQuoteLongAsString()
63 StringBuilder sb2 = new StringBuilder(); in testQuoteLongCharSequenceAsString() local
66 sb2.append("\\\""); in testQuoteLongCharSequenceAsString()
68 String exp = sb2.toString(); in testQuoteLongCharSequenceAsString()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/tar/
DTarUtilsTest.java40 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()

123