summaryrefslogtreecommitdiff
path: root/libs/pbd/test/scalar_properties.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/pbd/test/scalar_properties.cc')
-rw-r--r--libs/pbd/test/scalar_properties.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/libs/pbd/test/scalar_properties.cc b/libs/pbd/test/scalar_properties.cc
new file mode 100644
index 0000000000..f85b1081a4
--- /dev/null
+++ b/libs/pbd/test/scalar_properties.cc
@@ -0,0 +1,20 @@
+#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);
+}