Closed emptierset closed 1 year ago
Is there any actual functionality issue that is resulting from this behaviour?
No idea. I ran into it working on my personal fork of the program. It's just obviously incorrect behavior, so there may be some logic that assumes this function works as it claims to.
Won't fix, no explicit functionality issue.
This almost certainly also applies to
GetPreviousNonInclusive
, but I did not test it.Scenario:
GetNextNonInclusive
is called withsongObjects=[BPM(position=0), BPM(position=1000)]
andposition=1000
. Expected behavior:GetNextNonInclusive
returnsnull
. Observed behavior:GetNextNonInclusive
returnsBPM(position=1000)
.I have reproduced the function's code below for convenience:
The following code block demonstrates the correct behavior:
(and I'd probably rewrite it like this, given the chance):