module Minitest::Thesis class Status < Struct.new(:value) # Test case didn't have enough data to complete OVERRUN = self.new(0) # Test case contained something that prevented completion INVALID = self.new(1) # Test case completed just fine but was boring VALID = self.new(2) # Test case completed and was interesting INTERESTING = self.new(3) include Comparable def <=>(other) value <=> other.value end end end