mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Fix type inference
This commit is contained in:
parent
436c10cad6
commit
98b2cbc9cb
2 changed files with 4 additions and 4 deletions
|
@ -7,9 +7,9 @@ module Spectator::Matchers
|
|||
# Matcher for checking that the contents of one array (or similar type)
|
||||
# has the exact same contents as another and in the same order.
|
||||
struct ArrayMatcher(ExpectedType) < Matcher
|
||||
private getter expected : TestValue(ExpectedType)
|
||||
private getter expected
|
||||
|
||||
def initialize(@expected)
|
||||
def initialize(@expected : TestValue(Enumerable(ExpectedType)))
|
||||
end
|
||||
|
||||
def description
|
||||
|
|
|
@ -6,11 +6,11 @@ module Spectator::Matchers
|
|||
abstract struct ValueMatcher(ExpectedType) < StandardMatcher
|
||||
# Expected value.
|
||||
# Sub-types may use this value to test the expectation and generate message strings.
|
||||
private getter expected : TestValue(ExpectedType)
|
||||
private getter expected
|
||||
|
||||
# Creates the value matcher.
|
||||
# The expected value is stored for later use.
|
||||
def initialize(@expected)
|
||||
def initialize(@expected : TestValue(ExpectedType))
|
||||
end
|
||||
|
||||
private def values(actual)
|
||||
|
|
Loading…
Reference in a new issue