d46f659c75 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>
This commit is contained in:
Mike Kaganski 2021-10-26 10:24:50 +03:00
parent 637d29fa8e
commit 370c9d725a

View file

@ -1881,6 +1881,13 @@ void Test::testSequence() {
CPPUNIT_ASSERT_MESSAGE("Interface1", !(a >>= b)); CPPUNIT_ASSERT_MESSAGE("Interface1", !(a >>= b));
CPPUNIT_ASSERT_EQUAL_MESSAGE("Interface1", i, 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() { void Test::testEnum() {