Sha256: a60e4368499ea12208d2651beb00bc4e61cbc888a4be2e50310899cb9cbfcc1b

Contents?: true

Size: 487 Bytes

Versions: 4

Compression:

Stored size: 487 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

4 entries across 4 versions & 1 rubygems

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