mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Down-cast to preven type issues when inferring arrays
This commit is contained in:
parent
c045305bd2
commit
ee2491fef8
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ def new_expectation(expected : ExpectedType = 123, actual : ActualType = 123) fo
|
|||
partial = new_partial("foo", actual)
|
||||
matcher = new_matcher("bar", expected)
|
||||
matched = matcher.match?(partial)
|
||||
Spectator::Expectations::ValueExpectation.new(matched, false, partial, matcher)
|
||||
Spectator::Expectations::ValueExpectation.new(matched, false, partial, matcher).as(Spectator::Expectations::Expectation)
|
||||
end
|
||||
|
||||
def new_satisfied_expectation(value : T = 123) forall T
|
||||
|
|
Loading…
Reference in a new issue