Sha256: 1e3290abae1b565534c5b25cbe90d4b61b11877c5a1d28d9e0e7e987c401d46f

Contents?: true

Size: 318 Bytes

Versions: 7

Compression:

Stored size: 318 Bytes

Contents

module WildcardMatchers
  module Matchers
    define_wildcard_matcher(:bag_of)

    class BagOf < ::WildcardMatchers::WildcardMatcher
      protected
      def wildcard_match(actual)
        errors.push(*WildcardMatchers::ArrayMatcher.check_errors(actual.sort, expectation.sort, position))
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
wildcard_matchers-0.9.2 lib/wildcard_matchers/matchers/bag.rb
wildcard_matchers-0.9.1 lib/wildcard_matchers/matchers/bag.rb
wildcard_matchers-0.9.0 lib/wildcard_matchers/matchers/bag.rb
wildcard_matchers-0.4.0 lib/wildcard_matchers/matchers/bag.rb
wildcard_matchers-0.3.1 lib/wildcard_matchers/matchers/bag.rb
wildcard_matchers-0.3.0 lib/wildcard_matchers/matchers/bag.rb
wildcard_matchers-0.2.1 lib/wildcard_matchers/matchers/bag.rb