-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a new test with an strange Sequences issue #8
Comments
I'm adding some info I've found when debugging the test you added: parseMention() detects 3 mentions:
getSequences() detects 2 sequences:
You say that it should return 1 sequence instead of 2 so the real mention/sequence should be just (at)Twinx. Am I right? |
Mmmm that's what I thought three years ago, haha! Now I think that "@ Texie" shouldn't be considered a mention. What do you think? 😄 |
Hahaha good test! Then we should edit the library to catch this case. Sounds not that easy, by the way, hahaha! |
🤔This sounds me like a new issue. Maybe something like "change the definition of mention". |
That's true! :·) |
Let's move the discussion to #10 |
Test public void getSequences_shouldNotCrash_whenPassingAQuitNowText1() throws InterruptedException { String text = "@Twinx@ Texie@sabertooth89 great Quit!!"; List<Sequence> sequences = new MentionDetector(text).getSequences(); assertThat(sequences).hasSize(1); }
... right now, it breaks, 'cause it returns two Sequences instead of only one.
The text was updated successfully, but these errors were encountered: