mirror of
https://github.com/tailix/libkernaux.git
synced 2024-10-30 11:54:01 -04:00
131 lines
4.2 KiB
YAML
131 lines
4.2 KiB
YAML
- result: ''
|
|
args: []
|
|
- result: ''
|
|
args: ['']
|
|
- result: ''
|
|
args: ['', '']
|
|
|
|
- result: 'Hello, World!'
|
|
args: ['Hello, World!']
|
|
- result: 'Hello, Alex!'
|
|
args: ['Hello, ', ['%s', 'Alex'], '!']
|
|
- result: 'Hello, Alex!'
|
|
args: ['Hello, ', ['%c', ['A']], ['%c', ['l']], ['%c', ['e']], ['%c', ['x']], '!']
|
|
|
|
- result: '%'
|
|
args: [['%%']]
|
|
- result: '%%'
|
|
args: [['%%'], ['%%']]
|
|
- result: '%%%'
|
|
args: [['%%'], ['%%'], ['%%']]
|
|
|
|
- result: '%'
|
|
args: [['%*%', 20]]
|
|
|
|
- result: '123'
|
|
args: [['%u', 123]]
|
|
- result: '123456'
|
|
args: [['%u', 123], ['%u', 456]]
|
|
- result: 'foo'
|
|
args: [['%s', 'foo']]
|
|
- result: 'foobar'
|
|
args: [['%s', 'foo'], ['%s', 'bar']]
|
|
- result: 'a'
|
|
args: [['%c', ['a']]]
|
|
- result: 'ab'
|
|
args: [['%c', ['a']], ['%c', ['b']]]
|
|
- result: 'abc'
|
|
args: [['%c', ['a']], ['%c', ['b']], ['%c', ['c']]]
|
|
|
|
- result: '%123fooa'
|
|
args: [['%%'], ['%u', 123], ['%s', 'foo'], ['%c', ['a']]]
|
|
- result: '%123afoo'
|
|
args: [['%%'], ['%u', 123], ['%c', ['a']], ['%s', 'foo']]
|
|
- result: '%a123foo'
|
|
args: [['%%'], ['%c', ['a']], ['%u', 123], ['%s', 'foo']]
|
|
- result: '%afoo123'
|
|
args: [['%%'], ['%c', ['a']], ['%s', 'foo'], ['%u', 123]]
|
|
- result: '%foo123a'
|
|
args: [['%%'], ['%s', 'foo'], ['%u', 123], ['%c', ['a']]]
|
|
- result: '%fooa123'
|
|
args: [['%%'], ['%s', 'foo'], ['%c', ['a']], ['%u', 123]]
|
|
- result: '123%fooa'
|
|
args: [['%u', 123], ['%%'], ['%s', 'foo'], ['%c', ['a']]]
|
|
- result: '123%afoo'
|
|
args: [['%u', 123], ['%%'], ['%c', ['a']], ['%s', 'foo']]
|
|
- result: 'a%123foo'
|
|
args: [['%c', ['a']], ['%%'], ['%u', 123], ['%s', 'foo']]
|
|
- result: 'a%foo123'
|
|
args: [['%c', ['a']], ['%%'], ['%s', 'foo'], ['%u', 123]]
|
|
- result: 'foo%123a'
|
|
args: [['%s', 'foo'], ['%%'], ['%u', 123], ['%c', ['a']]]
|
|
- result: 'foo%a123'
|
|
args: [['%s', 'foo'], ['%%'], ['%c', ['a']], ['%u', 123]]
|
|
- result: '123foo%a'
|
|
args: [['%u', 123], ['%s', 'foo'], ['%%'], ['%c', ['a']]]
|
|
- result: '123a%foo'
|
|
args: [['%u', 123], ['%c', ['a']], ['%%'], ['%s', 'foo']]
|
|
- result: 'a123%foo'
|
|
args: [['%c', ['a']], ['%u', 123], ['%%'], ['%s', 'foo']]
|
|
- result: 'afoo%123'
|
|
args: [['%c', ['a']], ['%s', 'foo'], ['%%'], ['%u', 123]]
|
|
- result: 'foo123%a'
|
|
args: [['%s', 'foo'], ['%u', 123], ['%%'], ['%c', ['a']]]
|
|
- result: 'fooa%123'
|
|
args: [['%s', 'foo'], ['%c', ['a']], ['%%'], ['%u', 123]]
|
|
- result: '123fooa%'
|
|
args: [['%u', 123], ['%s', 'foo'], ['%c', ['a']], ['%%']]
|
|
- result: '123afoo%'
|
|
args: [['%u', 123], ['%c', ['a']], ['%s', 'foo'], ['%%']]
|
|
- result: 'a123foo%'
|
|
args: [['%c', ['a']], ['%u', 123], ['%s', 'foo'], ['%%']]
|
|
- result: 'afoo123%'
|
|
args: [['%c', ['a']], ['%s', 'foo'], ['%u', 123], ['%%']]
|
|
- result: 'foo123a%'
|
|
args: [['%s', 'foo'], ['%u', 123], ['%c', ['a']], ['%%']]
|
|
- result: 'fooa123%'
|
|
args: [['%s', 'foo'], ['%c', ['a']], ['%u', 123], ['%%']]
|
|
|
|
- result: '1.200000'
|
|
args: [['%f', 1.2]]
|
|
float: true
|
|
- result: '123.456789'
|
|
args: [['%f', 123.456789]]
|
|
float: true
|
|
|
|
- result: '0.01234568'
|
|
args: [['%.8f', 0.0123456789012345678901234567890123456789]]
|
|
float: true
|
|
- result: '0.012345679'
|
|
args: [['%.9f', 0.0123456789012345678901234567890123456789]]
|
|
float: true
|
|
# Actual precision is no more than 9
|
|
- result: '0.0123456790'
|
|
args: [['%.10f', 0.0123456789012345678901234567890123456789]]
|
|
float: true
|
|
- result: '0.01234567900'
|
|
args: [['%.11f', 0.0123456789012345678901234567890123456789]]
|
|
float: true
|
|
- result: '0.012345679000'
|
|
args: [['%.12f', 0.0123456789012345678901234567890123456789]]
|
|
float: true
|
|
- result: '0.012345679000000000000000000000'
|
|
args: [['%.30f', 0.0123456789012345678901234567890123456789]]
|
|
float: true
|
|
# Actual length is no more than 32
|
|
- result: '0.012345679000000000000000000000'
|
|
args: [['%.31f', 0.0123456789012345678901234567890123456789]]
|
|
float: true
|
|
- result: '0.012345679000000000000000000000'
|
|
args: [['%.32f', 0.0123456789012345678901234567890123456789]]
|
|
float: true
|
|
# Actual length is no more than 32
|
|
- result: '10.01234567900000000000000000000'
|
|
args: [['%.32f', 10.0123456789012345678901234567890123456789]]
|
|
float: true
|
|
- result: '100.0123456790000000000000000000'
|
|
args: [['%.32f', 100.0123456789012345678901234567890123456789]]
|
|
float: true
|
|
- result: '1000.012345679000000000000000000'
|
|
args: [['%.32f', 1000.0123456789012345678901234567890123456789]]
|
|
float: true
|