Kaydet (Commit) 9d3b73c8 authored tarafından Zdeněk Crhonek's avatar Zdeněk Crhonek Kaydeden (comit) Zdenek Crhonek

VBA tests - repair tests (Don't pass when all tests fail)

Change-Id: I70bfb8b909f9f7033cd1eb374db0fe710fd2a0c3
Reviewed-on: https://gerrit.libreoffice.org/45260Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarZdenek Crhonek <zcrhonek@gmail.com>
üst b6594212
...@@ -6,7 +6,7 @@ Dim result As String ...@@ -6,7 +6,7 @@ Dim result As String
Function doUnitTest() As String Function doUnitTest() As String
result = verify_testATN() result = verify_testATN()
If failCount <> 0 And passCount > 0 Then If failCount <> 0 or passCount = 0 Then
doUnitTest = result doUnitTest = result
Else Else
doUnitTest = "OK" doUnitTest = "OK"
......
...@@ -6,7 +6,7 @@ Dim result As String ...@@ -6,7 +6,7 @@ Dim result As String
Function doUnitTest() As String Function doUnitTest() As String
result = verify_testCDate() result = verify_testCDate()
If failCount <> 0 And passCount > 0 Then If failCount <> 0 or passCount = 0 Then
doUnitTest = result doUnitTest = result
Else Else
doUnitTest = "OK" doUnitTest = "OK"
...@@ -28,7 +28,7 @@ Function verify_testCDate() As String ...@@ -28,7 +28,7 @@ Function verify_testCDate() As String
On Error GoTo errorHandler On Error GoTo errorHandler
date2 = 25246 date2 = 25246
date1 = CDate("12.2.1969") '2/12/1969 date1 = CDate("12/02/1969") '02/12/1969
TestLog_ASSERT date1 = date2, "the return CDate is: " & date1 TestLog_ASSERT date1 = date2, "the return CDate is: " & date1
date2 = 28313 date2 = 28313
......
...@@ -6,7 +6,7 @@ Dim result As String ...@@ -6,7 +6,7 @@ Dim result As String
Function doUnitTest() As String Function doUnitTest() As String
result = verify_testCOS() result = verify_testCOS()
If failCount <> 0 And passCount > 0 Then If failCount <> 0 or passCount = 0 Then
doUnitTest = result doUnitTest = result
Else Else
doUnitTest = "OK" doUnitTest = "OK"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment