mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Remove ExpectedActual utility class
Don't think this is needed anymore.
This commit is contained in:
parent
98b2cbc9cb
commit
3314ce8579
1 changed files with 0 additions and 30 deletions
|
@ -1,30 +0,0 @@
|
|||
module Spectator::Matchers
|
||||
# Stores values and labels for expected and actual values.
|
||||
private struct ExpectedActual(ExpectedType, ActualType)
|
||||
# The expected value.
|
||||
getter expected : ExpectedType
|
||||
|
||||
# The user label for the expected value.
|
||||
getter expected_label : String
|
||||
|
||||
# The actual value.
|
||||
getter actual : ActualType
|
||||
|
||||
# The user label for the actual value.
|
||||
getter actual_label : String
|
||||
|
||||
# Creates the value and label store.
|
||||
def initialize(@expected : ExpectedType, @expected_label, @actual : ActualType, @actual_label)
|
||||
end
|
||||
|
||||
# Creates the value and label store.
|
||||
# Attributes are pulled from an expectation partial and matcher.
|
||||
def initialize(
|
||||
partial : Spectator::Expectations::ValueExpectationPartial(ActualType) |
|
||||
Spectator::Expectations::BlockExpectationPartial(ActualType),
|
||||
matcher : ValueMatcher(ExpectedType)
|
||||
)
|
||||
initialize(matcher.expected, matcher.label, partial.actual, partial.label)
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue