Skip to content

Commit

Permalink
Fix typos in test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
bdice authored and amkrajewski committed Jul 27, 2024
1 parent f3295e6 commit a43699d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions tests/algorithmSearch.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -38,4 +38,4 @@ suite "Corectness Tests":
test $result[i]:
check result[i] == bruteForceResult[i+1]



4 changes: 2 additions & 2 deletions tests/bruteForce.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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", "-")
saveResults(result, "tests/bruteForce_testResult.csv", "-")
4 changes: 2 additions & 2 deletions tests/bruteForceInt.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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]
check resultStandard[i] == resultInt[i]
6 changes: 3 additions & 3 deletions tests/leastPreventing.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand All @@ -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":
Expand All @@ -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", "-")
saveResults(result, "tests/leastPreventing_testResult.csv", "-")

0 comments on commit a43699d

Please sign in to comment.