Skip to content

Commit

Permalink
Add spec
Browse files Browse the repository at this point in the history
  • Loading branch information
buty4649 committed Jan 28, 2024
1 parent ccccc98 commit c08a467
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/feature/array_size_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
describe 'Array size' do
let(:input) do
# default array size max is 131072
# src/array.c:21: #define MRB_ARY_LENGTH_MAX 131072
140_000.times.to_a.join("\n")
end

let(:args) { '-s _.size' }
let(:expect_output) { '140000' }

it_behaves_like 'a successful exec'
end

0 comments on commit c08a467

Please sign in to comment.