Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / basic / qa / vba_tests / asc.vb
blob8da24e349ecda49c1f99e3e9ca03dd49f543a2c9
2 ' This file is part of the LibreOffice project.
4 ' This Source Code Form is subject to the terms of the Mozilla Public
5 ' License, v. 2.0. If a copy of the MPL was not distributed with this
6 ' file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 Rem Attribute VBA_ModuleType=VBAModule
10 Option VBASupport 1
11 Option Explicit
13 Function doUnitTest() As String
14 TestUtil.TestInit
15 verify_testASC
16 doUnitTest = TestUtil.GetResult()
17 End Function
19 Sub verify_testASC()
20 On Error GoTo errorHandler
22 TestUtil.AssertEqual(Asc("A"), 65, "Asc(""A"")")
23 TestUtil.AssertEqual(Asc("a"), 97, "Asc(""a"")")
24 TestUtil.AssertEqual(Asc("Apple"), 65, "Asc(""Apple"")")
26 Exit Sub
27 errorHandler:
28 TestUtil.ReportErrorHandler("verify_testASC", Err, Error$, Erl)
29 End Sub