Skip to content

Commit be5eeec

Browse files
authored
Reformatted example and fixed a naming error (#24)
* Fixed misnamed initialization * changed function call to sub call * added file headers
1 parent 78b5962 commit be5eeec

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

.github/workflows/lint_vba.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Precompile
1616
run: |
1717
python -m pip install --upgrade pip
18-
pip install 'vba_precompiler @ git+https://github.com/Beakerboy/VBA-Precompiler@dev'
18+
pip install 'vba_precompiler @ git+https://github.com/Beakerboy/VBA-Precompiler'
1919
python -m vba_precompiler ./src
2020
rm -rf ./src
2121
- name: Lint

examples/ClassModules/TestCaseStub.cls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ End Sub
4545
' Sub: MyFirstTest
4646
' All test subs should end with "Test" and include at least one assertion.
4747
Sub MyFirstTest()
48-
AssertTrue(2 = 1 + 1, "AssertTrue that one plus one equals two")
49-
AssertEquals(1 + 1, 2, "AssertEquals that one plus one equals two")
48+
AssertTrue 2 = 1 + 1, "AssertTrue that one plus one equals two"
49+
AssertEquals 1 + 1, 2, "AssertEquals that one plus one equals two"
5050
End Sub

examples/Modules/ProjectUnitTests.bas

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
Attribute VB_Name = "ProjectUnitTests"
12
Public Function RunTests()
23

34
Dim TestConfig As iTestableProject

testing/ClassModules/PostLogTests.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ End Function
3434
' Function: iTestCase_GetObject
3535
' Returns this object
3636
Function iTestCase_GetObject()
37-
Set iTestCase_GetObject = New PostLogChecks
37+
Set iTestCase_GetObject = New PostLogTests
3838
End Function
3939

4040
' Function: ErrorLoggedTest

testing/Modules/VBAUnitTesterUnitTests.bas

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
Attribute VB_Name = "VBAUnitTesterUnitTests"
12
Public Function RunTests()
23

34
Dim TestConfig As iTestableProject

0 commit comments

Comments
 (0)