Sign in
qemu
/
meson
/
9afe62232c64a7151d210900367674bb090cb3b3
/
.
/
test cases
/
common
/
270 int_to_str_fill
/
meson.build
blob: a549d941edf49f74f71b5731028fe0f43845de7c [
file
] [
log
] [
blame
]
project
(
'test_fill_in_int_to_string'
)
n
=
4
assert
(
n
.
to_string
()
==
'4'
)
assert
(
n
.
to_string
(
fill
:
3
)
==
'004'
)
assert
(
n
.
to_string
(
fill
:
-
3
)
==
'4'
)
n
=
-
4
assert
(
n
.
to_string
(
fill
:
3
)
==
'-04'
)