X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/51496782d13dd083fd20f9db31418b9231f2e5c3..55fbde1232bff0ed44c23775911574ac1b2f8a0a:/tests/longlong/longlongtest.cpp?ds=sidebyside diff --git a/tests/longlong/longlongtest.cpp b/tests/longlong/longlongtest.cpp index 5b7920bf87..e09edae668 100644 --- a/tests/longlong/longlongtest.cpp +++ b/tests/longlong/longlongtest.cpp @@ -24,6 +24,8 @@ #include "wx/longlong.h" #include "wx/timer.h" +#if wxUSE_LONGLONG + // ---------------------------------------------------------------------------- // helpers for testing // ---------------------------------------------------------------------------- @@ -303,6 +305,9 @@ void LongLongTestCase::ToString() a.Negate(); CPPUNIT_ASSERT( a.ToString() == _T("-1311768467139281697") ); + wxLongLong llMin(-2147483647L - 1L, 0); + CPPUNIT_ASSERT( llMin.ToString() == _T("-9223372036854775808") ); + #if wxUSE_LONGLONG_WX wxLongLongWx a1(a.GetHi(), a.GetLo()); CPPUNIT_ASSERT( a1.ToString() == _T("-1311768467139281697") ); @@ -319,3 +324,4 @@ void LongLongTestCase::ToString() } +#endif // wxUSE_LONGLONG