Ruby: Fix tests

This commit is contained in:
Alex Kotov 2022-01-21 15:32:33 +05:00 committed by GitHub
parent 65febb417f
commit cbe01333be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ RSpec.describe KernAux, '.snprintf1' do
end
context 'when format is too long' do
let(:format) { "%s#{' ' * 98}" }
let(:format) { "%s#{' ' * 99}" }
specify do
expect { snprintf1 }.to raise_error ArgumentError, 'invalid format'
@ -96,7 +96,7 @@ RSpec.describe KernAux, '.snprintf1' do
end
context 'when format is too long' do
let(:format) { "%s#{' ' * 98}" }
let(:format) { "%s#{' ' * 99}" }
specify do
expect { snprintf1 }.to raise_error ArgumentError, 'invalid format'