Skip to content

Commit 5560624

Browse files
committed
Unit tests: Move last remaining tests onto using the type_graph_utils helpers
1 parent 00b4637 commit 5560624

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

test/test_alignment_calc.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
#include <gtest/gtest.h>
22

33
#include "oi/type_graph/AlignmentCalc.h"
4+
#include "test/type_graph_utils.h"
45

56
using namespace type_graph;
67

7-
// TODO put in header:
8-
void test(Pass pass,
9-
std::vector<std::reference_wrapper<Type>> types,
10-
std::string_view expected);
11-
128
TEST(AlignmentCalcTest, PrimitiveMembers) {
139
auto myclass = Class{Class::Kind::Class, "MyClass", 16};
1410
auto myint8 = Primitive{Primitive::Kind::Int8};

test/test_topo_sorter.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44

55
#include "oi/type_graph/TopoSorter.h"
66
#include "oi/type_graph/Types.h"
7+
#include "test/type_graph_utils.h"
78

89
using namespace type_graph;
910

10-
Container getVector(); // TODO put in a header
11-
1211
template <typename T>
1312
using ref = std::reference_wrapper<T>;
1413

0 commit comments

Comments
 (0)