tests: Added bitfield test

This commit is contained in:
WerWolv
2021-09-12 20:28:32 +02:00
parent 82cc528c49
commit bed5361879
10 changed files with 69 additions and 23 deletions

View File

@@ -28,8 +28,8 @@ namespace hex::test {
}
template<typename T>
static T* create(u64 offset, size_t size, const std::string &typeName, const std::string &varName) {
auto pattern = new T(offset, size);
static T* create(const std::string &typeName, const std::string &varName, auto ... args) {
auto pattern = new T(args...);
pattern->setTypeName(typeName);
pattern->setVariableName(varName);