mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-22 10:21:21 +00:00
Make the failure message clearer.
This commit is contained in:
parent
b920a4dec9
commit
64d9bbd230
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue