mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-24 22:13:52 +01:00
tests/fmt_printf: spice up test
Also include interaction with stdio, as corrupting output on mixing stdio and fmt is too much of a footgun.
This commit is contained in:
parent
6cca6234b0
commit
d98211f339
@ -20,6 +20,8 @@
|
||||
* @}
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "fmt.h"
|
||||
|
||||
int main(void)
|
||||
@ -43,7 +45,9 @@ int main(void)
|
||||
print_str("\n");
|
||||
print_float(1.2345, 5);
|
||||
print_str("\n");
|
||||
print_str("Test successful.\n");
|
||||
printf("%s", "Test ");
|
||||
print_str("successful.");
|
||||
puts("");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user