Closed kwu130 closed 3 months ago
This issue has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Please ping one of the maintainers once you add more information and updates here. If this is not the case and you need some help, feel free to ask for help in our Gitter channel or our Discord server. Thank you for your contributions!
Description
For 4th test,
matching4 = "baaabab"
andpattern4 = "a*ab"
, pattern4 obviously does not match matching4, but the function of wildcard_matching returntrue
. The 5th test also has the same problem.Expected behavior
For 4th test and 5th test, the wildcard_matching function should return
false
.Actual behavior
For 4th test and 5th test, the wildcard_matching function returned
true
.Steps to reproduce
No response
Context
I think this error is because the next test reuses the results of the previous dpTable. Therefore, you need to reinitialize the dpTable before the next test to avoid this problem.
Additional information
code show as below.