message
Description:
Add a message to the test report.
Example: Print a message:
public static int main (string[] args) {
Test.init (ref args);
Test.add_func ("/valadoc/driver-0.14.x", () => {
// Don't get confused with GLib.message (format, ..)
Test.message ("use --verbose to print messages");
Test.message ("printf %s%c", "style", '!');
});
Test.run ();
return 0;
}
valac --pkg glib-2.0 GLib.Test.message.vala
./test --verbose
Parameters:
format |
the format string |
... |
printf-like arguments to |
Namespace: GLib.Test
Package: glib-2.0