Skip to content

Commit 53b7271

Browse files
committed
Added one more test
1 parent b001075 commit 53b7271

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/Tests/TestRunner.bas

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,4 +268,19 @@ TestFail:
268268
Assert.Fail "Test raised an error: #" & err.Number & " - " & err.Description
269269
Resume TestExit
270270
End Sub
271+
'@TestMethod("VBA Expressions")
272+
Private Sub TestModFunction()
273+
On Error GoTo TestFail
274+
275+
actual = GetResult( _
276+
"- (-1) + (+1) + 1.000 / 1.000 + 1 * (1) * (0.2) * (5) * (-1) * (--1) + 4 % 5 % 45 % 1 " _
277+
)
278+
expected = "2"
279+
Assert.AreEqual expected, actual
271280

281+
TestExit:
282+
Exit Sub
283+
TestFail:
284+
Assert.Fail "Test raised an error: #" & err.Number & " - " & err.Description
285+
Resume TestExit
286+
End Sub

0 commit comments

Comments
 (0)