forked from 0ad/0ad
Ykkrosh
147d4f2bd3
CBound operator+= updated the minimum value or the maximum value, but never both. (I think the operator+=(CVector3D) has always been buggy (because it assumes min<max, which isn't true of empty bounds), and I propagated the error to operator+=(CBound) ages ago.) Added test cases, and fixed. This was SVN commit r4244.
14 lines
282 B
C
14 lines
282 B
C
#include "lib/precompiled.h" // common precompiled header
|
|
|
|
// "test"-specific PCH:
|
|
|
|
#if HAVE_PCH
|
|
|
|
#include "lib/self_test.h"
|
|
#include <cxxtest/TestListener.h>
|
|
#include <cxxtest/TestTracker.h>
|
|
#include <cxxtest/TestRunner.h>
|
|
#include <cxxtest/RealDescriptions.h>
|
|
|
|
#endif // HAVE_PCH
|