mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Use integer division - Crystal 0.31.0 change
This commit is contained in:
parent
5d5cc0a41e
commit
adbfb7da7c
2 changed files with 4 additions and 4 deletions
|
@ -291,7 +291,7 @@ describe Spectator::DSL::SampleExampleGroupBuilder do
|
|||
factory = Spectator::DSL::ExampleFactory.new(SpyExample)
|
||||
symbol = :test
|
||||
count = 3
|
||||
expected = Array.new(SAMPLE_VALUES_COLLECTION.size * count) { |i| SAMPLE_VALUES_COLLECTION[i / count] }
|
||||
expected = Array.new(SAMPLE_VALUES_COLLECTION.size * count) { |i| SAMPLE_VALUES_COLLECTION[i // count] }
|
||||
create_proc = ->(s : SampleValueCollection) { s.create }
|
||||
builder = Spectator::DSL::SampleExampleGroupBuilder.new("foobar", SampleValueCollection, create_proc, "value", symbol)
|
||||
count.times { builder.add_child(factory) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue