summaryrefslogtreecommitdiff
path: root/basic/qa/vba_tests/format.vb
diff options
context:
space:
mode:
Diffstat (limited to 'basic/qa/vba_tests/format.vb')
-rw-r--r--basic/qa/vba_tests/format.vb2
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/qa/vba_tests/format.vb b/basic/qa/vba_tests/format.vb
index b12596a55d71..6d3fcba8e5b9 100644
--- a/basic/qa/vba_tests/format.vb
+++ b/basic/qa/vba_tests/format.vb
@@ -7,7 +7,7 @@ Dim result As String
Function doUnitTest() As String
result = verify_format()
-If failCount <> 0 And passCount > 0 Then
+If failCount <> 0 Or passCount = 0 Then
doUnitTest = result
Else
doUnitTest = "OK"