mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Actual values should not be prefixed
This commit is contained in:
parent
c156c55c72
commit
c197f3236f
4 changed files with 4 additions and 24 deletions
|
@ -27,15 +27,10 @@ module Spectator::Matchers
|
|||
def named_tuple
|
||||
{
|
||||
expected: NegatablePrefixedMatchDataValue.new(">=", "<", @values.expected),
|
||||
actual: PrefixedMatchDataValue.new(actual_operator, @values.actual),
|
||||
actual: @values.actual,
|
||||
}
|
||||
end
|
||||
|
||||
# Textual operator for the actual value.
|
||||
private def actual_operator
|
||||
matched? ? ">=" : "<"
|
||||
end
|
||||
|
||||
# Describes the condition that satisfies the matcher.
|
||||
# This is informational and displayed to the end-user.
|
||||
def message
|
||||
|
|
|
@ -27,15 +27,10 @@ module Spectator::Matchers
|
|||
def named_tuple
|
||||
{
|
||||
expected: NegatablePrefixedMatchDataValue.new(">", "<=", @values.expected),
|
||||
actual: PrefixedMatchDataValue.new(actual_operator, @values.actual),
|
||||
actual: @values.actual,
|
||||
}
|
||||
end
|
||||
|
||||
# Textual operator for the actual value.
|
||||
private def actual_operator
|
||||
matched? ? ">" : "<="
|
||||
end
|
||||
|
||||
# Describes the condition that satisfies the matcher.
|
||||
# This is informational and displayed to the end-user.
|
||||
def message
|
||||
|
|
|
@ -27,15 +27,10 @@ module Spectator::Matchers
|
|||
def named_tuple
|
||||
{
|
||||
expected: NegatablePrefixedMatchDataValue.new("<=", ">", @values.expected),
|
||||
actual: PrefixedMatchDataValue.new(actual_operator, @values.actual),
|
||||
actual: @values.actual,
|
||||
}
|
||||
end
|
||||
|
||||
# Textual operator for the actual value.
|
||||
private def actual_operator
|
||||
matched? ? "<=" : ">"
|
||||
end
|
||||
|
||||
# Describes the condition that satisfies the matcher.
|
||||
# This is informational and displayed to the end-user.
|
||||
def message
|
||||
|
|
|
@ -27,15 +27,10 @@ module Spectator::Matchers
|
|||
def named_tuple
|
||||
{
|
||||
expected: NegatablePrefixedMatchDataValue.new("<", ">=", @values.expected),
|
||||
actual: PrefixedMatchDataValue.new(actual_operator, @values.actual),
|
||||
actual: @values.actual,
|
||||
}
|
||||
end
|
||||
|
||||
# Textual operator for the actual value.
|
||||
private def actual_operator
|
||||
matched? ? "<" : ">="
|
||||
end
|
||||
|
||||
# Describes the condition that satisfies the matcher.
|
||||
# This is informational and displayed to the end-user.
|
||||
def message
|
||||
|
|
Loading…
Reference in a new issue