diff options
Diffstat (limited to 'basic/qa')
-rw-r--r-- | basic/qa/vba_tests/atn.vb | 2 | ||||
-rw-r--r-- | basic/qa/vba_tests/cdate.vb | 4 | ||||
-rw-r--r-- | basic/qa/vba_tests/cos.vb | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/basic/qa/vba_tests/atn.vb b/basic/qa/vba_tests/atn.vb index 4155a1cb2b93..145584ee6bd2 100644 --- a/basic/qa/vba_tests/atn.vb +++ b/basic/qa/vba_tests/atn.vb @@ -6,7 +6,7 @@ Dim result As String Function doUnitTest() As String result = verify_testATN() -If failCount <> 0 And passCount > 0 Then +If failCount <> 0 or passCount = 0 Then doUnitTest = result Else doUnitTest = "OK" diff --git a/basic/qa/vba_tests/cdate.vb b/basic/qa/vba_tests/cdate.vb index 718712e93c04..d04ecc0043a0 100644 --- a/basic/qa/vba_tests/cdate.vb +++ b/basic/qa/vba_tests/cdate.vb @@ -6,7 +6,7 @@ Dim result As String Function doUnitTest() As String result = verify_testCDate() -If failCount <> 0 And passCount > 0 Then +If failCount <> 0 or passCount = 0 Then doUnitTest = result Else doUnitTest = "OK" @@ -28,7 +28,7 @@ Function verify_testCDate() As String On Error GoTo errorHandler 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 date2 = 28313 diff --git a/basic/qa/vba_tests/cos.vb b/basic/qa/vba_tests/cos.vb index 4f9d725742db..993794b70f8c 100644 --- a/basic/qa/vba_tests/cos.vb +++ b/basic/qa/vba_tests/cos.vb @@ -6,7 +6,7 @@ Dim result As String Function doUnitTest() As String result = verify_testCOS() -If failCount <> 0 And passCount > 0 Then +If failCount <> 0 or passCount = 0 Then doUnitTest = result Else doUnitTest = "OK" |