aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/array/prepend_append_test.rb
blob: 3b38acf56ca4d405923b3ea166b2c5ce6e31132e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true
require "abstract_unit"
require "active_support/core_ext/array"

class PrependAppendTest < ActiveSupport::TestCase
  def test_append
    assert_equal [1, 2], [1].append(2)
  end

  def test_prepend
    assert_equal [2, 1], [1].prepend(2)
  end
end