1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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