test/liszt_test.rb
# check both the retval and the actual list
check both the retval and the actual list
check both the retval and the actual list
def assert_update(input, desired_result)
      actual_result = @nelson.update_ordered_list input
      actual_result.must_equal desired_result
      @nelson.ordered_list_ids.must_equal desired_result
    end
def assert_update ( input , desired_result ) actual_result = @nelson . update_ordered_list input actual_result . must_equal desired_result @nelson . ordered_list_ids . must_equal desired_result end
check both the retval and the actual list
check both the retval and the actual list
input
<not_specific>
desired_result
<not_specific>