Skip to content

Commit a47cc5f

Browse files
committed
Work on unit tests
1 parent 7c0884b commit a47cc5f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/include/test_patterns/test_pattern.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ namespace pl::test {
3030
virtual ~TestPattern() = default;
3131

3232
template<typename T>
33-
std::unique_ptr<T> create(const std::string &typeName, const std::string &varName, auto... args) {
34-
auto pattern = std::make_unique<T>(m_evaluator, args...);
33+
std::shared_ptr<T> create(const std::string &typeName, const std::string &varName, auto... args) {
34+
auto pattern = create_shared_object<T>(m_evaluator, args...);
3535
pattern->setTypeName(typeName);
3636
pattern->setVariableName(varName);
3737

0 commit comments

Comments
 (0)