mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Switch to run-time error for unsupported negation
This commit is contained in:
parent
201fe614d1
commit
f0bfd8b6d4
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ module Spectator::Matchers
|
|||
# The message should typically only contain the test expression labels.
|
||||
# Actual values should be returned by `#values`.
|
||||
private def failure_message_when_negated(actual : TestExpression(T)) : String forall T
|
||||
{% raise "Negation with #{@type.name} is not supported." %}
|
||||
raise "Negation with #{self.class} is not supported."
|
||||
end
|
||||
|
||||
# Checks whether the matcher is satisifed with the expression given to it.
|
||||
|
|
Loading…
Reference in a new issue