Sha256: 42a81c25ea9c3f3939922db80e4642249c3394a90b6d031472a45b392f0ab88b

Contents?: true

Size: 466 Bytes

Versions: 5

Compression:

Stored size: 466 Bytes

Contents

# frozen_string_literal: true

require_relative "../helper"

module Arel
  module Nodes
    describe "Distinct" do
      describe "equality" do
        it "is equal to other distinct nodes" do
          array = [Distinct.new, Distinct.new]
          assert_equal 1, array.uniq.size
        end

        it "is not equal with other nodes" do
          array = [Distinct.new, Node.new]
          assert_equal 2, array.uniq.size
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ibm_db-5.5.0 test/cases/arel/nodes/distinct_test.rb
ibm_db-5.4.1 test/cases/arel/nodes/distinct_test.rb
ibm_db-5.4.0 test/cases/arel/nodes/distinct_test.rb
ibm_db-5.3.2 test/cases/arel/nodes/distinct_test.rb
ibm_db-5.3.1 test/cases/arel/nodes/distinct_test.rb