-
Notifications
You must be signed in to change notification settings - Fork 5
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 incorrect index returned when using posRangeToIndexRange #156
Conversation
@@ -1743,6 +1746,65 @@ class JsonTreeTest { | |||
} | |||
} | |||
|
|||
@Test | |||
fun test_returning_range_from_index_correctly_withint_document_events() { |
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.
fun test_returning_range_from_index_correctly_withint_document_events() { | |
fun test_returning_range_from_index_correctly_within_document_events() { |
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.
fixed in 34eea6e.
if (node.id.createdAt <= executedAt) break | ||
updatedLeftSiblingNode = node | ||
} | ||
updatedLeftSiblingNode |
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.
is this line needed?
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.
removed in a9b50ca
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #156 +/- ##
==========================================
+ Coverage 79.62% 79.64% +0.02%
==========================================
Files 63 63
Lines 3853 3857 +4
Branches 603 604 +1
==========================================
+ Hits 3068 3072 +4
Misses 459 459
Partials 326 326 ☔ View full report in Codecov by Sentry. |
What this PR does / why we need it?
Any background context you want to provide?
What are the relevant tickets?
Fixes #
Checklist