diff options
Diffstat (limited to 'unotest')
-rw-r--r-- | unotest/source/embindtest/embindtest.cxx | 4 | ||||
-rw-r--r-- | unotest/source/embindtest/embindtest.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/unotest/source/embindtest/embindtest.cxx b/unotest/source/embindtest/embindtest.cxx index 8b131cd9f376..07558a5ed1b7 100644 --- a/unotest/source/embindtest/embindtest.cxx +++ b/unotest/source/embindtest/embindtest.cxx @@ -14,6 +14,7 @@ #include <cppu/unotype.hxx> #include <cppuhelper/implbase.hxx> #include <cppuhelper/weak.hxx> +#include <org/libreoffice/embindtest/Enum.hpp> #include <org/libreoffice/embindtest/Struct.hpp> #include <org/libreoffice/embindtest/XTest.hpp> #include <rtl/ustring.hxx> @@ -29,7 +30,6 @@ namespace { class Test : public cppu::WeakImplHelper<org::libreoffice::embindtest::XTest> { -public: sal_Bool SAL_CALL getBoolean() override { return true; } sal_Bool SAL_CALL isBoolean(sal_Bool value) override { return value; } @@ -102,7 +102,7 @@ public: sal_Bool SAL_CALL isStruct(org::libreoffice::embindtest::Struct const& value) override { - return value.m1 == -123456 && value.m2 == 100.5 && value.m3 == u"hä"; + return value == org::libreoffice::embindtest::Struct{ -123456, 100.5, u"hä"_ustr }; } css::uno::Sequence<sal_Bool> SAL_CALL getSequenceBoolean() override diff --git a/unotest/source/embindtest/embindtest.js b/unotest/source/embindtest/embindtest.js index 422c1c1a421f..6f88a9f543d0 100644 --- a/unotest/source/embindtest/embindtest.js +++ b/unotest/source/embindtest/embindtest.js @@ -98,7 +98,7 @@ Module.addOnPostRun(function() { } { let v = test.getStruct(); - console.log(v.m1 + ', ' + v.m2 + ', ' + v.m3); + console.log(v); console.assert(v.m1 === -123456); console.assert(v.m2 === 100.5); console.assert(v.m3 === 'hä'); |