Skip to content

Instantly share code, notes, and snippets.

@joker1007
Created December 19, 2016 08:09
Show Gist options
  • Save joker1007/b970e73a3c66f56f00be8d4c68ab67f7 to your computer and use it in GitHub Desktop.
Save joker1007/b970e73a3c66f56f00be8d4c68ab67f7 to your computer and use it in GitHub Desktop.
Array#== irregular result (ruby-2.3.2, activesupport-5.0.0.1, test-unit-3.0.9)
# require 'active_support/all'
# require 'test/unit'
p({"foo" => "bar"} == {"foo" => "bar"}) # => true
p [{"foo" => "bar"}] == [{"foo" => "bar"}] # => true
require 'active_support/all'
# require 'test/unit'
p({"foo" => "bar"} == {"foo" => "bar"}) # => true
p [{"foo" => "bar"}] == [{"foo" => "bar"}] # => true
require 'test/unit'
p({"foo" => "bar"} == {"foo" => "bar"}) # => true
p [{"foo" => "bar"}] == [{"foo" => "bar"}] # => true
require 'active_support/all'
require 'test/unit'
p({"foo" => "bar"} == {"foo" => "bar"}) # => true
p [{"foo" => "bar"}] == [{"foo" => "bar"}] # => false ???
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment