We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b001075 commit 53b7271Copy full SHA for 53b7271
src/Tests/TestRunner.bas
@@ -268,4 +268,19 @@ TestFail:
268
Assert.Fail "Test raised an error: #" & err.Number & " - " & err.Description
269
Resume TestExit
270
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
280
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