Adds further migration results and moves generated tests in
This commit is contained in:
442 files changed
+17126
-246
No files matched your search
@@ -0,0 +1,39 @@
|
||||
#include "Lts/Common/LtsTimelineClassic/LineMap.h"
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
namespace LtsTimelineClassic
|
||||
{
|
||||
|
||||
class LineMapTest : public ::testing::Test
|
||||
{
|
||||
protected:
|
||||
void SetUp() override {}
|
||||
|
||||
void TearDown() override {}
|
||||
};
|
||||
|
||||
TEST(LineMapTest, CreateEmptyLineMap)
|
||||
{
|
||||
LineMap lineMap;
|
||||
EXPECT_TRUE(lineMap.isEmpty());
|
||||
}
|
||||
|
||||
TEST(LineMapTest, InsertAndRetrieveValue)
|
||||
{
|
||||
LineMap lineMap;
|
||||
lineMap.insert(1, 1000);
|
||||
|
||||
EXPECT_EQ(lineMap.value(1), 1000);
|
||||
}
|
||||
|
||||
TEST(LineMapTest, ContainsKeyAfterInsert)
|
||||
{
|
||||
LineMap lineMap;
|
||||
lineMap.insert(5, 5000);
|
||||
|
||||
EXPECT_TRUE(lineMap.contains(5));
|
||||
EXPECT_FALSE(lineMap.contains(3));
|
||||
}
|
||||
|
||||
} // namespace LtsTimelineClassic
|
||||
Reference in new issue
Block a user