You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this.assertEquals("Dictu is great! Dictu is great! Dictu is great!".find("Dictu", 3), 37);
Passes in the current builds.
Expected Behavior
I was a bit confused because this test failed over and over in my current endavours of hacking on utf8 support, until i looked somewhat closer at the test:
this.assertEquals("Dictu is great! Dictu is great! Dictu is great!".find("Dictu", 3), 37);
The third occurance of Dictu is at index 32, not at 37= index + search length!
So this seams to be a bug? in the current implementation of find?
Steps To Reproduce
Run the string tests for find: dictu tests/strings/find.du
Sorry somehow missed this (emails get buried sometimes, need to be more vigilant checking this repo, apologies). Oh wow, that's really bad from me, yeah this is an issue
Is there an existing issue for this?
Current Behavior
This testcase:
Passes in the current builds.
Expected Behavior
I was a bit confused because this test failed over and over in my current endavours of hacking on utf8 support, until i looked somewhat closer at the test:
The third occurance of
Dictu
is at index 32, not at 37= index + search length!So this seams to be a bug? in the current implementation of find?
Steps To Reproduce
Run the string tests for find:
dictu tests/strings/find.du
Anything else?
Current test reference: https://github.com/dictu-lang/Dictu/blob/develop/tests/strings/find.du#L24
The text was updated successfully, but these errors were encountered: