This website requires JavaScript.
Explore
Help
Register
Sign In
humza
/
sml-projects
Watch
1
Star
0
Fork
0
You've already forked sml-projects
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
df78e20cb744acb234309411457b8063d3166637
sml-projects
/
test
/
regression.sml
Humza Shahid
d9380bcb64
pass regression test by modifying 'SearchList.backtrackRange' function. The modification that worked was swapping two if-statements around: first we check if the string position is 0 (and loop to check the previous string if so); in the else case, we check if the searchPos <= 1 (which signals for us to exit backtracking). Swapping the order of the if-statements means that, when we exit the loop, we always exit with string that is at this position.
2025-09-27 12:40:28 +01:00
2.0 KiB
Raw
Blame
History
View Raw
Reference in New Issue
View Git Blame
Copy Permalink