π Homework Assignment #5
Create a new empty repository with a /test folder π, and an /app folder π.
Inside of the app folder, create a library (lib.js) π and fill it with simple functions. These can serve any purpose you wish, such as generating a random number π², or checking whether or not a string is a palindrome. Really, any kind of functions will do.
Inside the /test folder, create a simple test runner πββοΈ, and then write tests for the functions in your lib.js file. You should try to test that they return (or callback) the correct value when passed valid parameters βοΈ, and that they return a predictable value (and don't crash) when passed invalid parameters β.