Fix min token handling in TokenRange.contains

Description

The following (if added in TokenRangeTest) fails:

TokenRange.contains(Token, boolean) does not handle the case where both the end of the range and the input token are the min token.

See suggested fix here.

I think we should make the method package-private and unit test it. And maybe refactor the code as well because it's getting hard to read.

Environment

None

Pull Requests

None
Fixed

Assignee

Unassigned

Reporter

Olivier Michallat

Labels

None

PM Priority

None

Reproduced in

None

Affects versions

Fix versions

Pull Request

None

Doc Impact

None

Size

None

External issue ID

None

External issue ID

None

Priority

Minor
Configure