File tree 3 files changed +14
-0
lines changed
3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,18 @@ void BaseTestFeature::testLinkType(){
63
63
}
64
64
65
65
66
+ void BaseTestFeature::testTargetType (){
67
+ CPPUNIT_ASSERT (target_type_to_string (nix::TargetType::DataArray) == " DataArray" );
68
+ CPPUNIT_ASSERT (target_type_to_string (nix::TargetType::DataFrame) == " DataFrame" );
69
+
70
+
71
+ Feature rp = tag.createFeature (data_array, nix::LinkType::Tagged);
72
+ CPPUNIT_ASSERT (rp.targetType () == nix::TargetType::DataArray);
73
+
74
+ tag.deleteFeature (rp.id ());
75
+ }
76
+
77
+
66
78
void BaseTestFeature::testData () {
67
79
DataArray a;
68
80
Feature f;
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ class BaseTestFeature : public CPPUNIT_NS::TestFixture {
26
26
void testId ();
27
27
28
28
void testLinkType ();
29
+ void testTargetType ();
29
30
void testData ();
30
31
void testLinkType2Str ();
31
32
void testStreamOperator ();
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ class TestFeatureHDF5 : public BaseTestFeature {
14
14
CPPUNIT_TEST (testValidate);
15
15
CPPUNIT_TEST (testId);
16
16
CPPUNIT_TEST (testLinkType);
17
+ CPPUNIT_TEST (testTargetType);
17
18
CPPUNIT_TEST (testData);
18
19
CPPUNIT_TEST (testLinkType2Str);
19
20
CPPUNIT_TEST (testStreamOperator);
You can’t perform that action at this time.
0 commit comments