Something went wrong. Try again.
OpenMW is an open implementation of the Morrowind engine
Something went wrong. Try again.
581 B · 27 lines
C++
12345678910111213141516171819202122232425262728#include <components/esm3/infoorder.hpp>
#include <gtest/gtest.h>
namespace ESM{ namespace { struct Value { RefId mId; RefId mPrev;
Value() = default; Value(const Value&) = delete; Value(Value&&) = default; Value& operator=(const Value&) = delete; Value& operator=(Value&&) = default; };
TEST(Esm3InfoOrderTest, insertInfoShouldNotCopyValue) { InfoOrder<Value> order; order.insertInfo(Value{}, false); } }}