There are problems where extra test got created, for input checking.
So the test checks if the function returns false or throws an error for wrong input.
These test cases could be removed by using typescript in some cases.
Example: In Exit-Maze there is a test case for a map with a wrong 2d-array. The input-type could force the function-user to use a valid array.
There are problems where extra test got created, for input checking.
So the test checks if the function returns false or throws an error for wrong input.
These test cases could be removed by using typescript in some cases.
Example: In Exit-Maze there is a test case for a map with a wrong 2d-array. The input-type could force the function-user to use a valid array.