New test framework should be used.
func(string, 2, 6)
Thank you for your honest feedback!
Hope that helps! :)
the task is largely underdescribed:
=> 'HHHHHHHH' is how many matches for L=3?
Currently, your sample tests are showing only examples with exact matches, you never show what happens for sequences longer than L.
And the fact that sample tests are only asking for N=1 or 2 doesn't help either...
Thank you for pointing that out! Should be fixed now :)
test case: THTHTHHHTHTTHTHHHHTHHHHTHHHTTHTTHHHHHHHTHHHTTHTTHHTTTTTHHHTTHTT with streak length of 4, occuring 2 times: True should equal False