Fix zero length queries WIP (#234)
* failing tests for zero-width queries * support zero width timespans in splitArcs. Fixes one test, breaks a load more.. * fix fastGap
This commit is contained in:
parent
fbb3d144a1
commit
24328ee8ae
3 changed files with 39 additions and 5 deletions
|
|
@ -18,6 +18,11 @@ export class TimeSpan {
|
|||
const end = this.end;
|
||||
const end_sam = end.sam();
|
||||
|
||||
// Support zero-width timespans
|
||||
if (begin.equals(end)) {
|
||||
return([new TimeSpan(begin, end)]);
|
||||
}
|
||||
|
||||
while (end.gt(begin)) {
|
||||
// If begin and end are in the same cycle, we're done.
|
||||
if (begin.sam().equals(end_sam)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue