CPPUNIT_TEST( Division );
CPPUNIT_TEST( BitOperations );
CPPUNIT_TEST( ToString );
+ CPPUNIT_TEST( LoHi );
CPPUNIT_TEST_SUITE_END();
void Conversion();
void Division();
void BitOperations();
void ToString();
+ void LoHi();
DECLARE_NO_COPY_CLASS(LongLongTestCase)
};
}
+void LongLongTestCase::LoHi()
+{
+ wxLongLong ll(123, 456);
+ CPPUNIT_ASSERT_EQUAL( 456u, ll.GetLo() );
+ CPPUNIT_ASSERT_EQUAL( 123, ll.GetHi() );
+
+ wxULongLong ull(987, 654);
+ CPPUNIT_ASSERT_EQUAL( 654u, ull.GetLo() );
+ CPPUNIT_ASSERT_EQUAL( 987u, ull.GetHi() );
+}
+
#endif // wxUSE_LONGLONG