Re: Vague Testing

2011-02-17 Thread Ovid
--- On Thu, 17/2/11, David Golden wrote: > So I think you've got to nail down what specifically about > the order > is required, then sort in a way that preserves that > important > dimension (country), but standardizes the rest (e.g. always > putting > 'hotel' after 'city').  Then you're just w

Re: Vague Testing

2011-02-17 Thread David Golden
On Thu, Feb 17, 2011 at 9:09 AM, Ovid wrote: > For a *very* contrived use case, imagine that you're being introduced to your > daughter's boyfriend for the first time and you know his name is "Alexander". > He might introduce himself as "Alexander", "Alex", "Al", or even "Xander" and > you migh

Re: Vague Testing

2011-02-17 Thread Ovid
--- On Thu, 17/2/11, David Golden wrote: > From: David Golden > wrote: > > It's OK if I get back that data structure, but the 2 > and 4 records are swapped or maybe the 5 isn't present. > However, for any contained array reference its exact data > can't change. However, if those came back in th

Re: Vague Testing

2011-02-17 Thread David Golden
On Thu, Feb 17, 2011 at 3:52 AM, Ovid wrote: > It's OK if I get back that data structure, but the 2 and 4 records are > swapped or maybe the 5 isn't present. However, for any contained array > reference its exact data can't change. However, if those came back in the > order of 6,5,4,3,2,1, the

Re: Vague Testing

2011-02-17 Thread Ricardo Signes
* Ovid [2011-02-17T07:43:16] > > It would be nice if this was a custom comparator for Test::Deep, then you > > would be apply the "almost" to lists of arbitrarily complex items and also > > conduct that test at any level of the data structure (including nesting if > > you feeling really fruity), >

Re: Vague Testing

2011-02-17 Thread Ovid
--- On Thu, 17/2/11, Fergal Daly wrote: > From: Fergal Daly > It would be nice if this was a custom > comparator for Test::Deep, then > you would be apply the "almost" to lists of arbitrarily > complex items > and also conduct that test at any level of the data > structure > (including nesting

Re: Vague Testing

2011-02-17 Thread Fergal Daly
It would be nice if this was a custom comparator for Test::Deep, then you would be apply the "almost" to lists of arbitrarily complex items and also conduct that test at any level of the data structure (including nesting if you feeling really fruity), F 2011/2/17 Ovid : > --- On Thu, 17/2/11, Ovi

Re: Vague Testing

2011-02-17 Thread Ovid
--- On Thu, 17/2/11, Ovid wrote: > From: Ovid > I've stumbled on a bit of an odd case where I have > constantly shifting data I need to test. Ordinarily I would > use cmp_deeply from Test::Deep, but it's not quite > structured enough. I need something similar to a Levenshtein > edit distance fo

Vague Testing

2011-02-17 Thread Ovid
(Now sent from the correct email address) I've stumbled on a bit of an odd case where I have constantly shifting data I need to test. Ordinarily I would use cmp_deeply from Test::Deep, but it's not quite structured enough. I need something similar to a Levenshtein edit distance for complex data