-
Notifications
You must be signed in to change notification settings - Fork 81
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
[FIX] Missing queries in single element text collections #1316
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, even with new unit test 👍 .
Codecov Report
@@ Coverage Diff @@
## master #1316 +/- ##
==========================================
+ Coverage 97.48% 97.48% +<.01%
==========================================
Files 218 218
Lines 8680 8682 +2
==========================================
+ Hits 8462 8464 +2
Misses 218 218
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a note of this fix in the changelog
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some minor stuff
CHANGELOG.md
Outdated
@@ -72,6 +72,8 @@ If possible, provide tooling that performs the changes, e.g. a shell-script. | |||
## Notable Bug-fixes | |||
|
|||
* Copying and moving the `seqan3::fm_index` and `seqan3::bi_fm_index` now work properly. | |||
* Searching in the `seqan3::fm_index` and `seqan3::bi_fm_index` constructed from a text collection containg a single |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Searching in the `seqan3::fm_index` and `seqan3::bi_fm_index` constructed from a text collection containg a single | |
* Searching in the `seqan3::fm_index` and `seqan3::bi_fm_index` constructed from a text collection containing a single |
@@ -303,6 +304,10 @@ class fm_index | |||
| views::join(delimiter) | |||
| views::to<std::vector<uint8_t>>; | |||
|
|||
// we need at least one delimiter | |||
if (std::ranges::distance(text) == 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just always add the delimiter makes the code a little easier I guess. And it shouldn't hurt.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Somewhere, something breaks 🤷♂
ci is broken? |
638751a
to
ae89ae9
Compare
@rrahn Travis runs through, but won't tell us here. |
Resolves #1315