summaryrefslogtreecommitdiff
path: root/tests/posix
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2020-11-14 21:31:03 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2020-11-14 21:31:03 +0100
commit9117a6b79dc32731f84968553dfffb3336e27aac (patch)
treecbcde3e57543760c191b05164b133cb0bfde0680 /tests/posix
parentf7b419897a97e1ebf96064227a04a1100d21f903 (diff)
downloadvala-9117a6b79dc32731f84968553dfffb3336e27aac.tar.gz
tests: Add string.printf() test to increase coverage
Diffstat (limited to 'tests/posix')
-rw-r--r--tests/posix/string-printf.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/posix/string-printf.vala b/tests/posix/string-printf.vala
new file mode 100644
index 000000000..a8c62c384
--- /dev/null
+++ b/tests/posix/string-printf.vala
@@ -0,0 +1,4 @@
+void main () {
+ string s = "%i %s %u %.4f".printf (42, "foo", 4711U, 3.1415);
+ assert (s == "42 foo 4711 3.1415");
+}