13
0
livetrax/libs/pbd/test/scalar_properties.cc

21 lines
409 B
C++
Raw Normal View History

#include "scalar_properties.h"
using namespace PBD;
ScalarPropertiesTest::testBasic ()
{
CPPUNIT_ASSERT (_property.changed() == false);
_property = 4;
CPPUNIT_ASSERT (_property == 4);
CPPUNIT_ASSERT (_property.changed() == true);
_property = 5;
CPPUNIT_ASSERT (_property == 5);
CPPUNIT_ASSERT (_property.changed() == true);
PropertyList undo;
PropertyList redo;
_property.diff (undo, redo);
}