From c08a4674201537a987b9b93978782e91c2945673 Mon Sep 17 00:00:00 2001 From: buty4649 Date: Sun, 28 Jan 2024 19:25:36 +0900 Subject: [PATCH] Add spec --- spec/feature/array_size_spec.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 spec/feature/array_size_spec.rb diff --git a/spec/feature/array_size_spec.rb b/spec/feature/array_size_spec.rb new file mode 100644 index 0000000..08da11e --- /dev/null +++ b/spec/feature/array_size_spec.rb @@ -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