From 64d9bbd23081a4854fb9e0240b0f2617543265ee Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 22 Nov 2012 20:54:05 +0900 Subject: [PATCH] Make the failure message clearer. --- tools/qfcc/test/modulo.r | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/qfcc/test/modulo.r b/tools/qfcc/test/modulo.r index 8175cc567..4d59fdf87 100644 --- a/tools/qfcc/test/modulo.r +++ b/tools/qfcc/test/modulo.r @@ -28,7 +28,12 @@ float test (string name, float (func)(float a, float b), ret = func (a, b); if (ret != c) { - printf ("%s: %g %% %g: %g != %g\n", name, a, b, ret, c); + if (func == baz) + printf ("%s: (%g + %g) %% (%g - %g): %g != %g\n", + name, a, b, a, b, ret, c); + else + printf ("%s: %g %% %g: %g != %g\n", + name, a, b, ret, c); return 1; } return 0;