Skip to content

Commit

Permalink
Fixed Keyframe Test
Browse files Browse the repository at this point in the history
  • Loading branch information
BrennoCaldato committed May 24, 2021
1 parent ae0a635 commit 27eb0e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/KeyFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -695,8 +695,9 @@ TEST_CASE( "AttachToObject", "[libopenshot][keyframe]" )
// Tracked Data JSON
auto trackedDataJson = trackedData->JsonValue();

// Get and cast the trakcedObject
auto trackedObject_base = t.GetTrackedObject("");
// Get and cast the trakcedObjec
std::list<std::string> ids = t.GetTrackedObjectsIds();
auto trackedObject_base = t.GetTrackedObject(ids.front());
auto trackedObject = std::make_shared<TrackedObjectBBox>();
trackedObject = std::dynamic_pointer_cast<TrackedObjectBBox>(trackedObject_base);
CHECK(trackedObject == trackedData);
Expand Down

0 comments on commit 27eb0e6

Please sign in to comment.