vendor/jruby/1.9/gems/rubycritic-1.4.0/test/test_helper.rb
##
# Fails unless <tt>exp</tt> and <tt>act</tt> are both arrays and
# contain the same elements.
#
#     assert_matched_arrays [3,2,1], [1,2,3]
Fails unless exp and act are both arrays and
contain the same elements.


Fails unless exp and act are both arrays and contain the same elements .
def assert_matched_arrays(exp, act)
      exp_ary = exp.to_ary
      assert_kind_of Array, exp_ary
      act_ary = act.to_ary
      assert_kind_of Array, act_ary
      assert_equal exp_ary.sort, act_ary.sort
    end
def assert_matched_arrays ( exp , act ) exp_ary = exp . to_ary assert_kind_of Array , exp_ary act_ary = act . to_ary assert_kind_of Array , act_ary assert_equal exp_ary . sort , act_ary . sort end
Fails unless <tt>exp</tt> and <tt>act</tt> are both arrays and
contain the same elements.
Fails unless <tt > exp< / tt > and <tt > act< / tt > are both arrays and contain the same elements .
exp
act