summaryrefslogtreecommitdiff
path: root/userland/test/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'userland/test/test.c')
-rw-r--r--userland/test/test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/userland/test/test.c b/userland/test/test.c
index 9013f1e..29aa34c 100644
--- a/userland/test/test.c
+++ b/userland/test/test.c
@@ -578,6 +578,8 @@ void printf_test(void) {
EXP("hex: 1");
buf_n = sprintf(buf, "hex: %x", 0x622933f2);
EXP("hex: 622933f2");
+ buf_n = sprintf(buf, "hex: %02x", 0);
+ EXP("hex: 00");
buf_n = sprintf(buf, "oct: %02o", 1);
EXP("oct: 01");