summaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
Diffstat (limited to 'test cases')
-rw-r--r--test cases/common/270 int_to_str_fill/meson.build9
1 files changed, 9 insertions, 0 deletions
diff --git a/test cases/common/270 int_to_str_fill/meson.build b/test cases/common/270 int_to_str_fill/meson.build
new file mode 100644
index 000000000..a549d941e
--- /dev/null
+++ b/test cases/common/270 int_to_str_fill/meson.build
@@ -0,0 +1,9 @@
+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')