Skip to content

Commit

Permalink
Style
Browse files Browse the repository at this point in the history
Signed-off-by: Arjo Chakravarty <[email protected]>
  • Loading branch information
arjo129 committed Mar 18, 2024
1 parent b37597d commit f69ec0a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/SimulationRunner_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1557,7 +1557,7 @@ TEST_P(SimulationRunnerTest,
runner.SetPaused(false);
runner.Run(1);

//Remove the model. Only 1 world plugin should remain.
// Remove the model. Only 1 world plugin should remain.
EXPECT_TRUE(runner.RequestRemoveEntity("box"));
runner.Run(2);
EXPECT_EQ(1u, runner.SystemCount());
Expand Down
2 changes: 1 addition & 1 deletion src/SystemCointainer.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2022 Open Source Robotics Foundation
* Copyright (C) 2024 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
24 changes: 20 additions & 4 deletions src/SystemContainer_TEST.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (C) 2024 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#include <gtest/gtest.h>
#include <unordered_set>
#include "SystemCointainer.hpp"
Expand All @@ -14,7 +30,7 @@ TEST(SystemContainer, InsertionAndIteration)
cont.Push(3);

int idx = 0;
for (auto &i: cont)
for (auto &i : cont)
{
idx++;
ASSERT_EQ(i, idx);
Expand All @@ -26,7 +42,7 @@ TEST(SystemContainer, InsertionAndIteration)

auto newCount = 0;
std::unordered_set<int> vals;
for (auto &i: cont)
for (auto &i : cont)
{
newCount++;
ASSERT_NE(i, 2);
Expand All @@ -37,7 +53,7 @@ TEST(SystemContainer, InsertionAndIteration)

std::unordered_set<int> finalVals;
cont.Push(2);
for (auto &i: cont)
for (auto &i : cont)
{
finalVals.insert(i);
}
Expand Down Expand Up @@ -80,7 +96,7 @@ TEST(SystemContainer, CheckEmptyProperties)
SystemContainer<int> cont;
ASSERT_EQ(cont.Size(), 0);
int idx = 0;
for (auto &i: cont)
for (auto &i : cont)
{
idx++;
ASSERT_EQ(i, idx);
Expand Down

0 comments on commit f69ec0a

Please sign in to comment.