mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Use MatchData
This commit is contained in:
parent
0bf106ab2e
commit
c1f61d68bf
2 changed files with 3 additions and 3 deletions
|
@ -19,8 +19,8 @@ end
|
|||
def new_expectation(expected : ExpectedType = 123, actual : ActualType = 123) forall ExpectedType, ActualType
|
||||
partial = new_partial(actual, "foo")
|
||||
matcher = new_matcher("bar", expected)
|
||||
matched = matcher.match?(partial)
|
||||
Spectator::Expectations::Expectation.new(matched, false, partial, matcher)
|
||||
match_data = matcher.match(partial)
|
||||
Spectator::Expectations::Expectation.new(match_data, false)
|
||||
end
|
||||
|
||||
def new_satisfied_expectation(value : T = 123) forall T
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue