summaryrefslogtreecommitdiff
path: root/runtimes/neurun/test/graph/operand/IndexSet.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtimes/neurun/test/graph/operand/IndexSet.cc')
-rw-r--r--runtimes/neurun/test/graph/operand/IndexSet.cc32
1 files changed, 16 insertions, 16 deletions
diff --git a/runtimes/neurun/test/graph/operand/IndexSet.cc b/runtimes/neurun/test/graph/operand/IndexSet.cc
index de4768cda..73e7fd8ac 100644
--- a/runtimes/neurun/test/graph/operand/IndexSet.cc
+++ b/runtimes/neurun/test/graph/operand/IndexSet.cc
@@ -16,37 +16,37 @@
#include <gtest/gtest.h>
-#include "model/operand/IndexSet.h"
+#include "model/OperandIndexSequence.h"
-using neurun::model::operand::Index;
-using neurun::model::operand::IndexSet;
+using neurun::model::OperandIndex;
+using neurun::model::OperandIndexSequence;
-TEST(graph_operand_IndexSet, append)
+TEST(graph_OperandIndexSequence, append)
{
- IndexSet iset{0, 2, 4, 8};
+ OperandIndexSequence iset{0, 2, 4, 8};
ASSERT_EQ(iset.size(), 4);
- iset.append(Index{10});
+ iset.append(OperandIndex{10});
ASSERT_EQ(iset.size(), 5);
- neurun::model::operand::IO::Index index1{1};
- neurun::model::operand::IO::Index index2{4};
+ neurun::model::IOIndex index1{1};
+ neurun::model::IOIndex index2{4};
ASSERT_EQ(iset.at(index1), 2);
ASSERT_EQ(iset.at(index2), 10);
- ASSERT_TRUE(iset.contains(Index{2}));
- ASSERT_TRUE(iset.contains(Index{10}));
- ASSERT_FALSE(iset.contains(Index{11}));
+ ASSERT_TRUE(iset.contains(OperandIndex{2}));
+ ASSERT_TRUE(iset.contains(OperandIndex{10}));
+ ASSERT_FALSE(iset.contains(OperandIndex{11}));
}
-TEST(graph_operand_IndexSet, replace)
+TEST(graph_OperandIndexSequence, replace)
{
- IndexSet iset{0, 1, 2, 3};
+ OperandIndexSequence iset{0, 1, 2, 3};
- iset.replace(Index{1}, Index{9});
- ASSERT_FALSE(iset.contains(Index{1}));
- ASSERT_TRUE(iset.contains(Index{9}));
+ iset.replace(OperandIndex{1}, OperandIndex{9});
+ ASSERT_FALSE(iset.contains(OperandIndex{1}));
+ ASSERT_TRUE(iset.contains(OperandIndex{9}));
}