Skip Menu |

This queue is for tickets about the Number-Interval CPAN distribution.

Report information
The Basics
Id: 72281
Status: resolved
Priority: 0/
Queue: Number-Interval

People
Owner: Nobody in particular
Requestors: torta [...] diff.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.05
Fixed in: (no value)



Subject: intersection does not hold open intervals correctly
hi, in the attached code I would expect the intersection to return FALSE, since point 2 does not belong to neither $itv1 nor $itv2 thanks -Gianluca
Subject: provaint.pl
use Number::Interval; my $itv1 = new Number::Interval(Min => 1, Max => 2, IncMax => 0); my $itv2 = new Number::Interval(Min => 2, IncMin => 0, Max => 3); print "problem\n" if $itv2->intersection($itv1);
Subject: Re: [rt.cpan.org #72281] intersection does not hold open intervals correctly
Date: Tue, 8 Nov 2011 21:05:46 -1000
To: bug-Number-Interval [...] rt.cpan.org
From: Tim Jenness <tjenness [...] cpan.org>
On Tue, Nov 8, 2011 at 8:42 AM, Gianluca Torta via RT < bug-Number-Interval@rt.cpan.org> wrote: Show quoted text
> > > in the attached code I would expect the intersection to return FALSE, > since point 2 does not belong to neither $itv1 nor $itv2 > > thanks > -Gianluca > >
Thanks. I have some test patches up on github if you'd like to take a look. https://github.com/timj/perl-Number-Interval -- Tim
thanks, the fix works also in the context where I found the bug
Fixed in V0.06 which is on its way to CPAN