Skip to content

Module for testing and optimizing algorithms in Advent of Code

Notifications You must be signed in to change notification settings

jaywor1/aoc_testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

aoc_testing

Module for testing and optimizing algorithms in Advent of Code

Instalation

npm install aoc_testing

Functions

checkIntegrity

  • This function checks if your functions returns correct answers

Parameters

  • input → input of puzzle
  • sol1 → solution of first part
  • sol2 → solution of second part
  • func1 → function that returns solution to first part
  • func2 → function that returns solution to second part

checkTime

  • Measures, how long it takes for functions to finish

Parameters

  • input → input of puzzle
  • func1 → function that returns solution to first part
  • func2 → function that returns solution to second part
  • times → how many times do you want to run the functions (default value is 1000)

logSolution

  • Prints out solutions

Parameters

  • input → input of puzzle
  • func1 → function that returns solution to first part
  • func2 → function that returns solution to second part

crlfBullshit

  • Removes '\r' from string array

Parameters

  • arrayToBeCleansed → array to be cleansed from '\r'

About

Module for testing and optimizing algorithms in Advent of Code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published