Sha256: 698877e64146805463f8010e1e4effaf73d54300d8ded38b808d46c75d4cc4fe
Contents?: true
Size: 292 Bytes
Versions: 4
Compression:
Stored size: 292 Bytes
Contents
class SetHelper # Compare two sets. # Returns a hash with keys +:ok+, +:missing+, +:unexpected+. def self.compare(expected, actual) { :missing => expected - actual, :unexpected => actual - expected, :ok => expected & actual, } end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
minitest_log-1.0.1 | lib/helpers/set_helper.rb |
minitest_log-1.0.0 | lib/helpers/set_helper.rb |
minitest_log-0.2.0 | lib/helpers/set_helper.rb |
minitest_log-0.1.0 | lib/helpers/set_helper.rb |