1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2025-02-17 15:45:32 -05:00

Ruby: improve tests

This commit is contained in:
Alex Kotov 2022-05-24 21:11:05 +03:00
parent 62abac62e0
commit 38b5dd9edd
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -65,7 +65,7 @@ RSpec.describe KernAux, '.cmdline' do
context 'when there are not too many args' do
let(:str) { 'a ' * 256 }
specify { expect(cmdline).to eq ['a'] * 256 }
it { is_expected.to eq ['a'] * 256 }
end
context 'when there are too many args' do
@ -80,7 +80,7 @@ RSpec.describe KernAux, '.cmdline' do
context 'when args don\'t cause buffer overflow' do
let(:str) { 'a' * 4095 }
specify { expect(cmdline).to eq ['a' * 4095] }
it { is_expected.to eq ['a' * 4095] }
end
context 'when args cause buffer overflow' do