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:
parent
b812ec148e
commit
46d50ed954
2 changed files with 6 additions and 3 deletions
|
@ -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'],
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Add table
Reference in a new issue