From f8f3cb6c55b085fa260c7f80644d5ef057d4a070 Mon Sep 17 00:00:00 2001 From: Douglas Rumbaugh Date: Mon, 5 Jun 2023 11:49:29 -0400 Subject: Test refactoring: pulled record stripping function to testing.h --- tests/testing.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/testing.h') diff --git a/tests/testing.h b/tests/testing.h index cd0045a..0be65e3 100644 --- a/tests/testing.h +++ b/tests/testing.h @@ -19,10 +19,21 @@ #include "util/types.h" #include "util/base.h" #include "framework/MutableBuffer.h" +#include "framework/RecordInterface.h" typedef de::WeightedRecord WRec; typedef de::Record Rec; +template +std::vector strip_wrapping(std::vector> vec) { + std::vector out(vec.size()); + for (size_t i=0; i