mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Remove unnecessary type specification
This commit is contained in:
parent
65dd6243dd
commit
6942e70024
1 changed files with 4 additions and 4 deletions
|
@ -36,14 +36,14 @@ def new_unsatisfied_expectation(expected : ExpectedType = 123, actual : ActualTy
|
|||
end
|
||||
|
||||
def create_expectations(success_count = 1, failure_count = 0)
|
||||
satisfied = Array(Spectator::Expectations::Expectation).new(success_count) { new_satisfied_expectation }
|
||||
unsatisfied = Array(Spectator::Expectations::Expectation).new(failure_count) { new_unsatisfied_expectation }
|
||||
satisfied = Array.new(success_count) { new_satisfied_expectation }
|
||||
unsatisfied = Array.new(failure_count) { new_unsatisfied_expectation }
|
||||
(satisfied + unsatisfied).shuffle
|
||||
end
|
||||
|
||||
def generate_expectations(success_count = 1, failure_count = 0)
|
||||
satisfied = Array(Spectator::Expectations::Expectation).new(success_count) { new_satisfied_expectation }
|
||||
unsatisfied = Array(Spectator::Expectations::Expectation).new(failure_count) { new_unsatisfied_expectation }
|
||||
satisfied = Array.new(success_count) { new_satisfied_expectation }
|
||||
unsatisfied = Array.new(failure_count) { new_unsatisfied_expectation }
|
||||
expectations = (satisfied + unsatisfied).shuffle
|
||||
reporter = Spectator::Expectations::ExpectationReporter.new(false)
|
||||
expectations.each do |expectation|
|
||||
|
|
Loading…
Reference in a new issue