Following my questions to @abstractqqq in the Unit Test Tracker I have implemented tests and small changes to streak length stats.
I made some small changes to streaks function:
Fix a bug for mode - when df is bi-modal it will return both modes in an unpredictable order. The function has clearly been written to return the lowest mode, so I have implemented it as such with a sort.
Previously the function would fail for no streaks. Handling for this implemented per aforementioned discussion in issue 70.
Written tests for the streak length stats.
Following my questions to @abstractqqq in the Unit Test Tracker I have implemented tests and small changes to streak length stats.
I made some small changes to streaks function: