Disable asserts in histogram code except in --testing-mode
authorJohn Darrington <john@darrington.wattle.id.au>
Mon, 26 Nov 2012 20:09:08 +0000 (21:09 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Mon, 26 Nov 2012 20:13:56 +0000 (21:13 +0100)
commit02b9b37698eb0b483fe0338f3b28d8f784a7af9a
tree24be49e7ee4dd44119c0bb2a99d908484eb325fa
parent2c0ddcd27c6e5afa944f9eca6f5cf6e7f6e32f98
Disable asserts in histogram code except in --testing-mode

The assertions in histogram.c are algebraically correct,
but due to floating point errors may not actually be true.
This change disables them except when in testing mode.
The tests in charts.at rely upon them being enabled.
Closes bug #36395
src/libpspp/assertion.h
src/math/histogram.c
tests/output/charts.at