Skip to content

Interval interface #3661

Closed
Closed
@DartBot

Description

@DartBot

This issue was originally filed by @seaneagan


see https://gist.github.com/2719638

One use case is in dart:unittest...

The "contains" matcher could be extended to match against Intervals.
// e.g.
expect(new Interval(0, 100), contains(x));

Then the following matchers could all be removed:

inInclusiveRange
inExclusiveRange
inOpenClosedRange
inClosedOpenRange

Another sensible name would be "Range".

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.closed-not-plannedClosed as we don't intend to take action on the reported issuelibrary-collectiontype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions