Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
0a6c8bde
Kaydet (Commit)
0a6c8bde
authored
Eyl 20, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
CPPUNIT_ASSERT_EQUAL disambiguation
Change-Id: I31d30627badb08469f7e0fd3ded957df78b58275
üst
5865af09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
test_oustringbuffer_assign.cxx
sal/qa/rtl/oustringbuffer/test_oustringbuffer_assign.cxx
+12
-12
No files found.
sal/qa/rtl/oustringbuffer/test_oustringbuffer_assign.cxx
Dosyayı görüntüle @
0a6c8bde
...
@@ -25,49 +25,49 @@ private:
...
@@ -25,49 +25,49 @@ private:
OUString
s1
(
"123456789012345"
);
OUString
s1
(
"123456789012345"
);
b1
=
s1
;
b1
=
s1
;
CPPUNIT_ASSERT_EQUAL
(
s1
,
b1
.
toString
());
CPPUNIT_ASSERT_EQUAL
(
s1
,
b1
.
toString
());
CPPUNIT_ASSERT_EQUAL
(
16
,
b1
.
getCapacity
());
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
16
)
,
b1
.
getCapacity
());
OUString
s2
(
"abc"
);
OUString
s2
(
"abc"
);
b1
=
s2
;
b1
=
s2
;
CPPUNIT_ASSERT_EQUAL
(
s2
,
b1
.
toString
());
CPPUNIT_ASSERT_EQUAL
(
s2
,
b1
.
toString
());
CPPUNIT_ASSERT_EQUAL
(
16
,
b1
.
getCapacity
());
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
16
)
,
b1
.
getCapacity
());
OUString
s3
(
"1234567890123456"
);
OUString
s3
(
"1234567890123456"
);
b1
=
s3
;
b1
=
s3
;
CPPUNIT_ASSERT_EQUAL
(
s3
,
b1
.
toString
());
CPPUNIT_ASSERT_EQUAL
(
s3
,
b1
.
toString
());
CPPUNIT_ASSERT_EQUAL
(
32
,
b1
.
getCapacity
());
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
32
)
,
b1
.
getCapacity
());
OUStringBuffer
b2
;
OUStringBuffer
b2
;
b2
=
"123456789012345"
;
b2
=
"123456789012345"
;
CPPUNIT_ASSERT_EQUAL
(
s1
,
b2
.
toString
());
CPPUNIT_ASSERT_EQUAL
(
s1
,
b2
.
toString
());
CPPUNIT_ASSERT_EQUAL
(
16
,
b2
.
getCapacity
());
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
16
)
,
b2
.
getCapacity
());
b2
=
"abc"
;
b2
=
"abc"
;
CPPUNIT_ASSERT_EQUAL
(
s2
,
b2
.
toString
());
CPPUNIT_ASSERT_EQUAL
(
s2
,
b2
.
toString
());
CPPUNIT_ASSERT_EQUAL
(
16
,
b2
.
getCapacity
());
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
16
)
,
b2
.
getCapacity
());
b2
=
"1234567890123456"
;
b2
=
"1234567890123456"
;
CPPUNIT_ASSERT_EQUAL
(
s3
,
b2
.
toString
());
CPPUNIT_ASSERT_EQUAL
(
s3
,
b2
.
toString
());
CPPUNIT_ASSERT_EQUAL
(
32
,
b2
.
getCapacity
());
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
32
)
,
b2
.
getCapacity
());
#if HAVE_CXX11_UTF16_STRING_LITERAL \
#if HAVE_CXX11_UTF16_STRING_LITERAL \
&& (!defined SAL_W32 || defined __MINGW32__)
&& (!defined SAL_W32 || defined __MINGW32__)
// sal_Unicode is still wchar_t not char16_t even for MSVC 2015
// sal_Unicode is still wchar_t not char16_t even for MSVC 2015
OUStringBuffer
b3
;
OUStringBuffer
b3
;
b3
=
u"123456789012345"
;
b3
=
u"123456789012345"
;
CPPUNIT_ASSERT_EQUAL
(
s1
,
b3
.
toString
());
CPPUNIT_ASSERT_EQUAL
(
s1
,
b3
.
toString
());
CPPUNIT_ASSERT_EQUAL
(
16
,
b3
.
getCapacity
());
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
16
)
,
b3
.
getCapacity
());
b3
=
u"abc"
;
b3
=
u"abc"
;
CPPUNIT_ASSERT_EQUAL
(
s2
,
b3
.
toString
());
CPPUNIT_ASSERT_EQUAL
(
s2
,
b3
.
toString
());
CPPUNIT_ASSERT_EQUAL
(
16
,
b3
.
getCapacity
());
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
16
)
,
b3
.
getCapacity
());
b3
=
u"1234567890123456"
;
b3
=
u"1234567890123456"
;
CPPUNIT_ASSERT_EQUAL
(
s3
,
b3
.
toString
());
CPPUNIT_ASSERT_EQUAL
(
s3
,
b3
.
toString
());
CPPUNIT_ASSERT_EQUAL
(
32
,
b3
.
getCapacity
());
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
32
)
,
b3
.
getCapacity
());
#endif
#endif
OUStringBuffer
b4
;
OUStringBuffer
b4
;
b4
=
OUStringLiteral
(
"1"
)
+
"23456789012345"
;
b4
=
OUStringLiteral
(
"1"
)
+
"23456789012345"
;
CPPUNIT_ASSERT_EQUAL
(
s1
,
b4
.
toString
());
CPPUNIT_ASSERT_EQUAL
(
s1
,
b4
.
toString
());
CPPUNIT_ASSERT_EQUAL
(
16
,
b4
.
getCapacity
());
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
16
)
,
b4
.
getCapacity
());
b4
=
OUStringLiteral
(
"a"
)
+
"bc"
;
b4
=
OUStringLiteral
(
"a"
)
+
"bc"
;
CPPUNIT_ASSERT_EQUAL
(
s2
,
b4
.
toString
());
CPPUNIT_ASSERT_EQUAL
(
s2
,
b4
.
toString
());
CPPUNIT_ASSERT_EQUAL
(
16
,
b4
.
getCapacity
());
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
16
)
,
b4
.
getCapacity
());
b4
=
OUStringLiteral
(
"1"
)
+
"234567890123456"
;
b4
=
OUStringLiteral
(
"1"
)
+
"234567890123456"
;
CPPUNIT_ASSERT_EQUAL
(
s3
,
b4
.
toString
());
CPPUNIT_ASSERT_EQUAL
(
s3
,
b4
.
toString
());
CPPUNIT_ASSERT_EQUAL
(
32
,
b4
.
getCapacity
());
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
32
)
,
b4
.
getCapacity
());
}
}
CPPUNIT_TEST_SUITE
(
Test
);
CPPUNIT_TEST_SUITE
(
Test
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment