Skip to content

Commit

Permalink
Added StrictEqual assertion to ASPUnitTester.
Browse files Browse the repository at this point in the history
- Modified package.json to reflect this repository.
- Updated version number for new release.
  • Loading branch information
s-kerdel committed May 8, 2020
1 parent 9bc6f5b commit b8a5420
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Lib/Classes/ASPUnitLibrary.asp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Version
Private Sub Class_Initialize()
Version = "0.1.0"
Version = "0.2.1"
Set m_Runner = New ASPUnitRunner
Set m_Tester = New ASPUnitTester
Expand Down
21 changes: 21 additions & 0 deletions Test/ASPUnitTesterAssertionMethods.asp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@
) _
)
Call ASPUnit.AddModule( _
ASPUnit.CreateModule( _
"ASPUnitTester StrictEqual Assertion Method Tests", _
Array( _
ASPUnit.CreateTest("ASPUnitTesterStrictEqualPassedTruthy"), _
ASPUnit.CreateTest("ASPUnitTesterStrictEqualPassedFalsey") _
), _
objLifecycle _
) _
)
Call ASPUnit.AddModule( _
ASPUnit.CreateModule( _
"ASPUnitTester NotEqual Assertion Method Tests", _
Expand Down Expand Up @@ -116,6 +127,16 @@
Call ASPUnit.Equal(objService.Equal(True, False, ""), False, "Equal method should return falsey with unequal values")
End Sub
' StrictEqual Assertion Method Tests
Sub ASPUnitTesterStrictEqualPassedTruthy()
Call ASPUnit.StrictEqual(objService.Equal(1.0, 1.0, ""), True, "StrictEqual method should return truthy with equal values")
End Sub
Sub ASPUnitTesterStrictEqualPassedFalsey()
Call ASPUnit.StrictEqual(objService.Equal(1.0, "1.0", ""), False, "StrictEqual method should return falsey with unequal values")
End Sub
' NotEqual Assertion Method Tests
Sub ASPUnitTesterNotEqualPassedTruthy()
Expand Down
19 changes: 11 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
{
"name": "aspunit",
"description": "A Classic ASP Unit Testing Framework",
"version": "0.1.1-0",
"homepage": "https://github.com/rpeterclark/aspunit",
"version": "0.2.1",
"homepage": "https://github.com/s-kerdel/ASPUnit",
"author": {
"name": "R. Peter Clark",
"email": "[email protected]",
"url": "http://www.rpeterclark.com"
"name": "S. Kerdel",
"email": "[email protected]",
"url": "https://www.exdev.nl"
},
"contributors": [
{"name":"R. Peter Clark", "email":"[email protected]", "url":"http://www.rpeterclark.com"}
],
"repository": {
"type": "git",
"url": "git://github.com/rpeterclark/aspunit.git"
"url": "git://github.com/s-kerdel/ASPUnit.git"
},
"bugs": {
"url": "https://github.com/rpeterclark/aspunit/issues"
"url": "https://github.com/s-kerdel/ASPUnit/issues"
},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/rpeterclark/aspunit/blob/master/LICENSE-MIT"
"url": "https://github.com/s-kerdel/ASPUnit/blob/master/LICENSE-MIT"
}
],
"scripts": {
Expand Down

0 comments on commit b8a5420

Please sign in to comment.