ostafen / smart

String Matching Algorithms Research Tool
https://smart-tool.github.io/smart/
GNU General Public License v3.0
4 stars 2 forks source link

pattern lengths only enforced for one random test. #71

Open nishihatapalmer opened 1 year ago

nishihatapalmer commented 1 year ago

If you specify the -plen option for the test command, it is supposed to use the pattern lengths you supply (where the test allows a choice). However, only the first random pattern test uses it - all the other random pattern tests pick random length patterns.

Need to extend the pattern length options out to the other random tests, and refactor how it works a bit. Right now there are two different test methods for the random patterns. We need one random pattern test and a way to consistently feed it the right pattern lengths, that can be re-used for all the other tests.