From 1c8a8bf6c4dd0486abe5f29af8e71269603565ef Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Thu, 21 Oct 2021 13:02:21 +0200 Subject: [PATCH 1/2] turo: add space after JSON comma --- sys/test_utils/result_output/json/result_output_json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/test_utils/result_output/json/result_output_json.c b/sys/test_utils/result_output/json/result_output_json.c index 0080e54bf6..b53a5b1a21 100644 --- a/sys/test_utils/result_output/json/result_output_json.c +++ b/sys/test_utils/result_output/json/result_output_json.c @@ -16,7 +16,7 @@ static void _print_comma(turo_t *ctx, turo_state_t state) { if (ctx->state == TURO_STATE_NEED_COMMA) { - print_str(","); + print_str(", "); } ctx->state = state; } From 99dbed9ce7d343de7e46e4d3336bc241cace039a Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Thu, 21 Oct 2021 13:02:48 +0200 Subject: [PATCH 2/2] turo: fix json toru_float() precision value --- sys/test_utils/result_output/json/result_output_json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/test_utils/result_output/json/result_output_json.c b/sys/test_utils/result_output/json/result_output_json.c index b53a5b1a21..cf51882ad4 100644 --- a/sys/test_utils/result_output/json/result_output_json.c +++ b/sys/test_utils/result_output/json/result_output_json.c @@ -59,7 +59,7 @@ void turo_u64(turo_t *ctx, uint64_t val) void turo_float(turo_t *ctx, float val) { _print_comma(ctx, TURO_STATE_NEED_COMMA); - print_float(val, 8); + print_float(val, 7); } void turo_string(turo_t *ctx, const char *str)