summaryrefslogtreecommitdiffstats
path: root/cppu
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-10-26 10:24:50 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-10-26 21:37:09 +0200
commit370c9d725a8b026fa6454b7ffb43dc58c868594c (patch)
treef99e644bc634242057b968e53949e709460392c8 /cppu
parentDrop ContainerHelper::vectorToSequence and use comphelper::containerToSequence (diff)
downloadcore-370c9d725a8b026fa6454b7ffb43dc58c868594c.tar.gz
core-370c9d725a8b026fa6454b7ffb43dc58c868594c.zip
d46f659c7524625474f0bb907805e285ee27d5ec follow-up: add unit test
Change-Id: I34be2bc813bf0d62cac935a84c6371cd64ee68f3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124168 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'cppu')
-rw-r--r--cppu/qa/test_any.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/cppu/qa/test_any.cxx b/cppu/qa/test_any.cxx
index ebec9998d1d6..4cf9d181984f 100644
--- a/cppu/qa/test_any.cxx
+++ b/cppu/qa/test_any.cxx
@@ -1881,6 +1881,13 @@ void Test::testSequence() {
CPPUNIT_ASSERT_MESSAGE("Interface1", !(a >>= b));
CPPUNIT_ASSERT_EQUAL_MESSAGE("Interface1", i, b);
}
+ {
+ // The two default-constructed sequences both refer to the same static cppu::g_emptySeq
+ css::uno::Sequence<sal_Int32> aEmptyIntSequence;
+ css::uno::Sequence<OUString> aEmptyStringSequence;
+ a <<= aEmptyStringSequence;
+ CPPUNIT_ASSERT(!(a >>= aEmptyIntSequence));
+ }
}
void Test::testEnum() {