Skip to content

Commit

Permalink
tests: Add check to ObjectList test case
Browse files Browse the repository at this point in the history
  • Loading branch information
jngrad committed May 6, 2021
1 parent 219a442 commit d93f935
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/script_interface/tests/ObjectList_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
#include "script_interface/LocalContext.hpp"
#include "script_interface/ObjectList.hpp"

#include <algorithm>
#include <memory>
#include <vector>

using namespace ScriptInterface;

struct ObjectListImpl : ObjectList<ObjectHandle> {
Expand Down Expand Up @@ -75,6 +79,7 @@ BOOST_AUTO_TEST_CASE(clearing_elements) {
list.add(ObjectRef{});
list.clear();
BOOST_CHECK(list.elements().empty());
BOOST_CHECK(list.mock_core.empty());
}

BOOST_AUTO_TEST_CASE(serialization) {
Expand Down

0 comments on commit d93f935

Please sign in to comment.