' ' This file is part of the LibreOffice project. ' ' This Source Code Form is subject to the terms of the Mozilla Public ' License, v. 2.0. If a copy of the MPL was not distributed with this ' file, You can obtain one at http://mozilla.org/MPL/2.0/. ' Option VBASupport 1 Option Explicit Function doUnitTest() As String TestUtil.TestInit verify_testCBool doUnitTest = TestUtil.GetResult() End Function Sub verify_testCBool() On Error GoTo errorHandler TestUtil.AssertEqual(CBool(1), True, "CBool(1)") TestUtil.AssertEqual(CBool(1 = 2), False, "CBool(1 = 2)") TestUtil.AssertEqual(CBool(0), False, "CBool(0)") TestUtil.AssertEqual(CBool(21), True, "CBool(21)") TestUtil.AssertEqual(CBool("true"), True, "CBool(""true"")") TestUtil.AssertEqual(CBool("false"), False, "CBool(""false"")") TestUtil.AssertEqual(CBool("1"), True, "CBool(""1"")") TestUtil.AssertEqual(CBool("-1"), True, "CBool(""-1"")") TestUtil.AssertEqual(CBool("0"), False, "CBool(""0"")") Dim a1, a2 As Integer a1 = 1: a2 = 10 TestUtil.AssertEqual(CBool(a1 = a2), False, "CBool(a1 = a2)") a1 = 10: a2 = 10 TestUtil.AssertEqual(CBool(a1 = a2), True, "CBool(a1 = a2)") Exit Sub errorHandler: TestUtil.ReportErrorHandler("verify_testCBool", Err, Error$, Erl) End Sub lue='distro/cib/libreoffice-5-2'>distro/cib/libreoffice-5-2 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/xmloff/source/style/MultiPropertySetHelper.cxx
AgeCommit message (Expand)Author
2024-05-06replace createFromAscii with OUString literals in MultiPropertySetHelperNoel Grandin
2021-09-03clang-tidy:readability-redundant-member-initNoel Grandin
2019-12-25sal_Char->char in xmloff..xmlsecurityNoel Grandin
2018-09-13loplugin:simplifyconstruct in writerfilter..xmlsecurityNoel Grandin
2018-07-12Add missing sal/log.hxx headersGabor Kelemen
2018-01-12More loplugin:cstylecast: xmloffStephan Bergmann
2017-10-23loplugin:includeform: xmloffStephan Bergmann
2017-07-17extend loplugin useuniqueptr to OUString pointersNoel Grandin
2017-07-12loplugin:useuniqueptr in xmloffNoel Grandin
2016-06-17convert DBG_ASSERT in xmloffNoel Grandin
2016-04-18clean-up: unused using declarations and includesJochen Nitschke
2016-02-09Remove excess newlinesChris Sherlock
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann