linux/file-commandpipe.vala \
posix/arrays.vala \
posix/empty-length-0.vala \
+ posix/string-printf.vala \
posix/struct_only.vala \
posix/delegate_only.vala \
posix/enum_only.vala \
assert (s == "");
}
+void test_string_printf () {
+ string s = "%i %s %u %.4f".printf (42, "foo", 4711U, 3.1415);
+ assert (s == "42 foo 4711 3.1415");
+}
+
void test_string_replace () {
string s = "hellomyworld";
void main () {
test_string ();
test_string_joinv ();
+ test_string_printf ();
test_string_replace ();
test_string_slice ();
test_string_splice ();
--- /dev/null
+void main () {
+ string s = "%i %s %u %.4f".printf (42, "foo", 4711U, 3.1415);
+ assert (s == "42 foo 4711 3.1415");
+}