mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-29 04:42:18 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
580828a97c |
@@ -23,7 +23,7 @@ class AIAttackGroupsTest : public ::testing::Test {
|
||||
flatbuffers::FlatBufferBuilder fbb;
|
||||
fbb.ForceDefaults(true);
|
||||
|
||||
auto unitsVec = std::vector<Unit>{
|
||||
std::vector<Unit> unitsVec{
|
||||
AddGenericUnit(0, 0, Coords(0, 0)),
|
||||
AddGenericUnit(0, 1, Coords(0, 1)),
|
||||
AddGenericUnit(0, 2, Coords(5, 0)),
|
||||
@@ -287,4 +287,4 @@ TEST_F(AIAttackGroupsTest, targetPriorities_assignHighestPowerFirst) {
|
||||
.target = Coords(0, 5),
|
||||
.attackLocations = upperRightAttackLocations}}),
|
||||
tpls[2].priorityOrder);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ class AIAttackerStrategySelectorTest : public ::testing::Test {
|
||||
flatbuffers::FlatBufferBuilder fbb;
|
||||
fbb.ForceDefaults(true);
|
||||
|
||||
auto unitsVec = std::vector<Unit>{
|
||||
std::vector<Unit> unitsVec{
|
||||
AddGenericUnit(0, 0, Coords(5, 0)),
|
||||
AddGenericUnit(0, 1, Coords(4, 0)),
|
||||
AddGenericUnit(0, 2, Coords(5, 5)),
|
||||
|
||||
@@ -21,7 +21,7 @@ class AIStrategySelectorTest : public ::testing::Test {
|
||||
flatbuffers::FlatBufferBuilder fbb;
|
||||
fbb.ForceDefaults(true);
|
||||
|
||||
auto unitsVec = std::vector<Unit>{
|
||||
std::vector<Unit> unitsVec{
|
||||
AddGenericUnit(0, 0, Coords(5, 0)),
|
||||
AddGenericUnit(0, 1, Coords(4, 0)),
|
||||
AddGenericUnit(0, 2, Coords(5, 5)),
|
||||
@@ -291,4 +291,4 @@ TEST_F(AIStrategySelectorTest,
|
||||
return GetGameSettings()->GetGetter().GetBattalionType(typeId);
|
||||
})
|
||||
.strategyType);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ class AIScoreUtilitiesTest : public ::testing::Test {
|
||||
flatbuffers::FlatBufferBuilder fbb;
|
||||
fbb.ForceDefaults(true);
|
||||
|
||||
auto unitsVec = std::vector<Unit>{
|
||||
std::vector<Unit> unitsVec{
|
||||
AddGenericUnit(0, 0, Coords(5, 0)),
|
||||
AddGenericUnit(0, 1, Coords(4, 0)),
|
||||
AddGenericUnit(0, 2, Coords(5, 5)),
|
||||
|
||||
@@ -26,7 +26,7 @@ class AIWaterCrossingCalculatorTest : public ::testing::Test {
|
||||
flatbuffers::FlatBufferBuilder fbb;
|
||||
fbb.ForceDefaults(true);
|
||||
|
||||
auto unitsVec = std::vector<Unit>{
|
||||
std::vector<Unit> unitsVec{
|
||||
AddGenericUnit(0, 0, Coords(5, 0)),
|
||||
AddGenericUnit(0, 1, Coords(4, 0))};
|
||||
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ class BlowBridgeCommandFactoryTests : public ::testing::Test {
|
||||
|
||||
auto engOff = AddGenericUnit(1, 0, bridgePosition);
|
||||
auto otherOff = AddGenericUnit(2, 1, adjacentOccupied);
|
||||
vector<Unit> units_vec{engOff, otherOff};
|
||||
auto units_vec = vector<Unit>{engOff, otherOff};
|
||||
auto unitsOff = fbb.CreateVectorOfSortedStructs(&units_vec);
|
||||
|
||||
auto mapOff = AddBasicMap(fbb);
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ class BuildBridgeCommandFactoryTests : public ::testing::Test {
|
||||
fbb.ForceDefaults(true);
|
||||
const auto engOff = AddGenericUnit(1, 0, position);
|
||||
|
||||
vector<Unit> unitsVec{engOff};
|
||||
auto unitsVec = vector<Unit>{engOff};
|
||||
const auto unitsOff = fbb.CreateVectorOfSortedStructs(&unitsVec);
|
||||
|
||||
fbb.Finish(unitsOff);
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ class FearCommandFactoryTests : public ::testing::Test {
|
||||
auto necroOff = AddGenericUnit(1, 0, position);
|
||||
auto targetOff = AddGenericUnit(5, 1, adjacentPosition);
|
||||
|
||||
vector<Unit> unitsVec{necroOff, targetOff};
|
||||
auto unitsVec = vector<Unit>{necroOff, targetOff};
|
||||
auto unitsOff = fbb.CreateVectorOfSortedStructs(&unitsVec);
|
||||
|
||||
auto mapOff = AddBasicMap(fbb);
|
||||
|
||||
+1
-1
@@ -43,7 +43,7 @@ class HolyWaveCommandFactoryTests : public ::testing::Test {
|
||||
auto actorOff = AddGenericUnit(1, 0, position);
|
||||
auto otherOff = AddGenericUnit(5, 1, Coords(5, 5));
|
||||
|
||||
vector<Unit> unitsVec{actorOff, otherOff};
|
||||
auto unitsVec = vector<Unit>{actorOff, otherOff};
|
||||
auto unitsOff = fbb.CreateVectorOfSortedStructs(&unitsVec);
|
||||
|
||||
auto mapOff = AddBasicMap(fbb);
|
||||
|
||||
Reference in New Issue
Block a user