-
Notifications
You must be signed in to change notification settings - Fork 15
search not working in some cases #8
Copy link
Copy link
Open
Description
I have found what appears to be a problem with this snippet:
var iTreeTest = new IntervalTree(12979);
iTreeTest.add(25908, 25916, '26a24e54ba5f4b098fb6bf797e57884a');
iTreeTest.add(25916, 25923, '6db3f7dee7014010bbd0b450109add3f');
//this returns both ranges, as expected
iTreeTest.search( 25916, 25917 );
//as does this
iTreeTest.search( 25908, 25917 );
//however, this does not... (just decremented the initial search value by 1)
iTreeTest.search( 25907, 25917 );
//nor does
iTreeTest.search( 1, 25917 );
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels