-void Bullet::testInvariant() const {
- lyx::Assert(font >= MIN);
- lyx::Assert(font < FONTMAX);
- lyx::Assert(character >= MIN);
- lyx::Assert(character < CHARMAX);
- lyx::Assert(size >= MIN);
- lyx::Assert(size < SIZEMAX);
- lyx::Assert(user_text >= -1);
- lyx::Assert(user_text <= 1);
+ BOOST_ASSERT(font >= MIN);
+ BOOST_ASSERT(font < FONTMAX);
+ BOOST_ASSERT(character >= MIN);
+ BOOST_ASSERT(character < CHARMAX);
+ BOOST_ASSERT(size >= MIN);
+ BOOST_ASSERT(size < SIZEMAX);
+ BOOST_ASSERT(user_text >= -1);
+ BOOST_ASSERT(user_text <= 1);