Skip to content

contains? for continuous intervals fails to contain same points when a inclusive b exclusive #29

@tudborg

Description

@tudborg

reproduce with

refute Interval.contains?(
         FloatInterval.new(left: 1.0, right: 4.0, bounds: "()"),
         FloatInterval.new(left: 1.0, right: 4.0, bounds: "[]")
       )

assert Interval.contains?(
         FloatInterval.new(left: 1.0, right: 4.0, bounds: "[]"),
         FloatInterval.new(left: 1.0, right: 4.0, bounds: "()")
       )

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