13
0
livetrax/libs/pbd/test/scalar_properties.cc
Carl Hetherington eecb8c496a Some stub tests for scalar properties.
git-svn-id: svn://localhost/ardour2/branches/3.0@6835 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-04-02 15:35:36 +00:00

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);
}