From a43699d398f0e8eb226fb00a93a4a08bf482055a Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Fri, 21 Jun 2024 14:33:07 -0500 Subject: [PATCH] Fix typos in test suite --- tests/algorithmSearch.nim | 4 ++-- tests/bruteForce.nim | 4 ++-- tests/bruteForceInt.nim | 4 ++-- tests/leastPreventing.nim | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/algorithmSearch.nim b/tests/algorithmSearch.nim index b05c58e..9859c58 100644 --- a/tests/algorithmSearch.nim +++ b/tests/algorithmSearch.nim @@ -3,7 +3,7 @@ import std/strutils import ../src/nimcso -suite "Corectness Tests": +suite "Correctness Tests": test "Algorithm Search results match the reference values": let pBitA = getPresenceBitArrays() @@ -38,4 +38,4 @@ suite "Corectness Tests": test $result[i]: check result[i] == bruteForceResult[i+1] - \ No newline at end of file + diff --git a/tests/bruteForce.nim b/tests/bruteForce.nim index 89362c7..9b7c66f 100644 --- a/tests/bruteForce.nim +++ b/tests/bruteForce.nim @@ -3,7 +3,7 @@ import std/strutils import ../src/nimcso -suite "Corectness Tests": +suite "Correctness Tests": # Common setup for all tests without need to repeat it every time let pBitA = getPresenceBitArrays() @@ -44,4 +44,4 @@ suite "Corectness Tests": test "^ Correctly prevents " & $referenceResult[i-1].prevented: check result[i].prevented == referenceResult[i-1].prevented - saveResults(result, "tests/bruteForce_testResult.csv", "-") \ No newline at end of file + saveResults(result, "tests/bruteForce_testResult.csv", "-") diff --git a/tests/bruteForceInt.nim b/tests/bruteForceInt.nim index ca5a423..2f9227b 100644 --- a/tests/bruteForceInt.nim +++ b/tests/bruteForceInt.nim @@ -2,7 +2,7 @@ import std/unittest import ../src/nimcso -suite "Corectness Tests": +suite "Correctness Tests": test "Verify Brute Force / Brute Foce Int Consistency": let resultStandard = bruteForce(verbose=false) let resultInt = bruteForceInt(verbose=false) @@ -12,4 +12,4 @@ suite "Corectness Tests": for i in 1 ..< resultStandard.len: test $resultStandard[i] & " is the same in both results": - check resultStandard[i] == resultInt[i] \ No newline at end of file + check resultStandard[i] == resultInt[i] diff --git a/tests/leastPreventing.nim b/tests/leastPreventing.nim index d9aed9e..5960a67 100644 --- a/tests/leastPreventing.nim +++ b/tests/leastPreventing.nim @@ -3,7 +3,7 @@ import std/strutils import ../src/nimcso -suite "Lest Preventing / Most Common Corectness Tests": +suite "Least Preventing / Most Common Correctness Tests": setup: let pBitA = getPresenceBitArrays() @@ -18,7 +18,7 @@ suite "Lest Preventing / Most Common Corectness Tests": elSol.prevented = prevented referenceResult.add(elSol) - test "Persistance of Filtered Dataset": + test "Persistence of Filtered Dataset": saveFilteredDataset("tests/filteredDataset_testResult.txt") test "Least Prevented Complete": @@ -30,4 +30,4 @@ suite "Lest Preventing / Most Common Corectness Tests": test "^ Correctly prevents " & $referenceResult[i].prevented: check result[i].prevented == referenceResult[i].prevented - saveResults(result, "tests/leastPreventing_testResult.csv", "-") \ No newline at end of file + saveResults(result, "tests/leastPreventing_testResult.csv", "-")