I'm going to +1 this under the rationale that since it's *deterministic* such that someone changes the test data such that the test fails, it will fail immediately and the comment will explain what went wrong.
On Wed, Sep 1, 2010 at 10:45 AM, Markus Roberts <[email protected]>wrote: > +0.85 This does the job, but it relies on the names of the test records > (specifically, of one of them being greater than "empty"). Still, the > alternatives I can think of, such as: > > [[sample_records[:empty]] | sample_records.values).each do |options| > > [[sample_records[:empty]] + sample_records.reject { |k,v| k == > :empty}.values).each do |options| > > sample_records.values.sort_by { |options| options[:text].length }.each > do |options| > > don't seem sufficiently better to warrant advocating them. > > -- M > ----------------------------------------------------------- > The power of accurate observation is > commonly called cynicism by those > who have not got it. ~George Bernard Shaw > ------------------------------------------------------------ > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Developers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<puppet-dev%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/puppet-dev?hl=en. > -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
