Describe the bug
There was a fix done in the PR #20 to check whether the function is throwing the error. This is the related comment.
If I am right, this only checks the error thrown has the right error message or not but not whether error is thrown. If the function don't throw any error this test case still passes.
We have a reference which do the similar thing at PR#10 : Line 32
However fix is not done the right way and test case didn't stop the error from propagating.
Describe the bug There was a fix done in the PR #20 to check whether the function is throwing the error. This is the related comment.
However fix is not done the right way and test case didn't stop the error from propagating.
To Reproduce Steps to reproduce the behavior:
Expected behavior All the test cases to pass.
Screenshots
Additional context
_Originally posted by @krajasekhar-unify in https://github.com/unifystockx/code_compete/pull/20#discussion_r488494137_