mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Adjust call argument matching
Reenable test for https://github.com/icy-arctic-fox/spectator/issues/44 and https://github.com/icy-arctic-fox/spectator/issues/47
This commit is contained in:
parent
a967dce241
commit
fbe877690d
2 changed files with 9 additions and 5 deletions
|
@ -90,9 +90,10 @@ module Spectator
|
|||
|
||||
i = 0
|
||||
other.args.each do |k, v2|
|
||||
break if i >= positional.size
|
||||
next if kwargs.has_key?(k) # Covered by named arguments.
|
||||
|
||||
v1 = positional.fetch(i) { return false }
|
||||
v1 = positional[i]
|
||||
i += 1
|
||||
return false unless v1 === v2
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue