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:
parent
637d29fa8e
commit
370c9d725a
1 changed files with 7 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue