Skip to content

search not working in some cases #8

@jedierikb

Description

@jedierikb

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 );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions