lab2 ‐ Modularity and Tests - isel-leic-pi/IPW-2627i-LEIRT31D GitHub Wiki
Lab 02 - Modularity, Tests and Asynchronous Programming
Modularity - ECMAScript Modules
Include the two functions from Exercise 9 and 10 in an ECMAScript module so that they can be imported and reused.
Create a separate module containing example code that imports this module and demonstrates how to call the functions.
Unit Tests with Mocha
Write a set of unit tests for the functions from Exercise 9 and 10 using the Mocha testing framework.
The tests should verify that each function behaves correctly with various inputs, including edge cases.