------art_45931_32993316.1164251634883
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Wow...  I go out to lunch and the response is great.

A test case is a great idea David.  I've made some adjustments to your setup
to meet my requirements.  valid and invalid are in comparison to the @std
array.

I wish I could try these out but I'll have to wait until I get home to have
a good go at it.

On 11/23/06, dblack / wobblini.net <dblack / wobblini.net> wrote:

>
> require 'test/unit'
>
> class ArrayComparisonTest < Test::Unit::TestCase
>
>    def setup


         @std  1,2,3,4,5,"abc",nil]
         @valid_arrays [ 2,3,1,4,nil,5,"abc"],
[2,1,nil,"abc",5,3,4],[1,3,2,4,["abc"],5,nil]]

         @invalid_arrays  
                                     [nil,nil,nil],
                                     [nil,nil,nil,nil,nil,nil,nil],
                                     [1,2,3,1,2,3,1],
                                     ["abc","abc",1,2,3,4,5],
                                     ["abc",1,2,3,4,5,1],
                                     [["abc",1],1,2,3,4,5,nil]
                                    ]
       end

------art_45931_32993316.1164251634883--