From b8a5420205a052800033bd232f4a954875ce2f72 Mon Sep 17 00:00:00 2001 From: Shiva Kerdel Date: Fri, 8 May 2020 14:07:10 +0200 Subject: [PATCH] Added StrictEqual assertion to ASPUnitTester. - Modified package.json to reflect this repository. - Updated version number for new release. --- Lib/Classes/ASPUnitLibrary.asp | 2 +- Test/ASPUnitTesterAssertionMethods.asp | 21 +++++++++++++++++++++ package.json | 19 +++++++++++-------- 3 files changed, 33 insertions(+), 9 deletions(-) diff --git a/Lib/Classes/ASPUnitLibrary.asp b/Lib/Classes/ASPUnitLibrary.asp index 847be7b..0da5624 100644 --- a/Lib/Classes/ASPUnitLibrary.asp +++ b/Lib/Classes/ASPUnitLibrary.asp @@ -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 diff --git a/Test/ASPUnitTesterAssertionMethods.asp b/Test/ASPUnitTesterAssertionMethods.asp index 2453e15..4446cbf 100644 --- a/Test/ASPUnitTesterAssertionMethods.asp +++ b/Test/ASPUnitTesterAssertionMethods.asp @@ -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", _ @@ -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() diff --git a/package.json b/package.json index b5ea21f..42b4364 100644 --- a/package.json +++ b/package.json @@ -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": "rpeterclark@gmail.com", - "url": "http://www.rpeterclark.com" + "name": "S. Kerdel", + "email": "shiva@exdev.nl", + "url": "https://www.exdev.nl" }, + "contributors": [ + {"name":"R. Peter Clark", "email":"rpeterclark@gmail.com", "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": {