eecb8c496a
git-svn-id: svn://localhost/ardour2/branches/3.0@6835 d708f5d6-7413-0410-9779-e7cbd77b26cf
21 lines
409 B
C++
21 lines
409 B
C++
#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);
|
|
}
|