mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Re-add ordering methods
This commit is contained in:
parent
3314ce8579
commit
6a317b7a21
1 changed files with 8 additions and 0 deletions
|
@ -45,6 +45,14 @@ module Spectator::Matchers
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def in_order
|
||||||
|
self
|
||||||
|
end
|
||||||
|
|
||||||
|
def in_any_order
|
||||||
|
UnorderedArrayMatcher.new(expected)
|
||||||
|
end
|
||||||
|
|
||||||
private def compare_arrays(expected_elements, actual_elements)
|
private def compare_arrays(expected_elements, actual_elements)
|
||||||
if expected_elements.size == actual_elements.size
|
if expected_elements.size == actual_elements.size
|
||||||
index = 0
|
index = 0
|
||||||
|
|
Loading…
Reference in a new issue