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

Common: fix test for printf

This commit is contained in:
Alex Kotov 2022-05-24 17:52:38 +03:00
parent b812ec148e
commit 46d50ed954
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
2 changed files with 6 additions and 3 deletions

View file

@ -10,6 +10,12 @@ RSpec.describe KernAux, '.sprintf' do
it { is_expected.to be_frozen }
it { is_expected.to eq 'Hello, World!' }
context 'for empty string value' do
subject(:sprintf) { described_class.sprintf ['Hello testing%s'] }
it { is_expected.to eq 'Hello testing' }
end
[
['', 'using regular tests'],
['_orig', 'using original tests'],

View file

@ -204,9 +204,6 @@
- result: 'Hello testing'
args: ['Hello testing']
- result: 'Hello testing'
args: [['Hello testing%s']]
fixme: true
- result: 'Hello testing'
args: [['Hello testing%s', '']]
- result: 'Hello testing'