Method: SHACL::ValidationReport#==

Defined in:
lib/shacl/validation_report.rb

#==(other) ⇒ Boolean

Two reports are eq if they have the same number of results and each result equals a result in the other report.

Parameters:

Returns:

  • (Boolean)


74
75
76
77
# File 'lib/shacl/validation_report.rb', line 74

def ==(other)
  return false unless other.is_a?(ValidationReport)
  count == other.count && other.results.all? {|r| results.include?(r)}
end