Sha256: 94698ea6128a72e5188e91d8116c28661a440c211aa11db62577131ac8eee482

Contents?: true

Size: 274 Bytes

Versions: 2

Compression:

Stored size: 274 Bytes

Contents

module Korinthenkacker
  module Filters
    class Flaky
      def filter(cases)
        unique_cases = Set.new(cases)
        unique_cases.select do |unique_case|
          cases.any? { |other_case| unique_case.sibling?(other_case) }
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
korinthenkacker-0.0.3 lib/korinthenkacker/filters/flaky.rb
korinthenkacker-0.0.2 lib/korinthenkacker/filters/flaky.rb