struct

Spectator::TestValue(T)

Inherits Spectator::TestExpression < Struct < Value < Object

Captures a value from a test and its label.

Constructors

new(value : T, label : String)

Creates the expression value with a custom label.

Source
new(value : T)

Creates the expression with a stringified value. This is used for the "should" syntax and when the label doesn't matter.

Source

Instance methods

inspect(io)

Reports complete information about the expression.

Source
value

Actual value.

Source