Skip to content

Commit 0b5b537

Browse files
committed
fix: formatting
1 parent a526e01 commit 0b5b537

File tree

5 files changed

+8
-12
lines changed

5 files changed

+8
-12
lines changed

exercises/concept/power-of-troy/.meta/exemplar.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ void give_new_artifact(human& receiver, std::string item_name) {
77
std::make_unique<artifact>(artifact{item_name}); // Include hint!
88
}
99

10-
void exchange_artifacts(std::unique_ptr<artifact>& item_a, std::unique_ptr<artifact>& item_b) {
10+
void exchange_artifacts(std::unique_ptr<artifact>& item_a,
11+
std::unique_ptr<artifact>& item_b) {
1112
std::swap(item_a, item_b);
1213
}
1314

exercises/concept/power-of-troy/.meta/exemplar.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ struct human {
2020
};
2121

2222
void give_new_artifact(human& receiver, std::string item_name);
23-
void exchange_artifacts(std::unique_ptr<artifact>& item_a, std::unique_ptr<artifact>& item_b);
23+
void exchange_artifacts(std::unique_ptr<artifact>& item_a,
24+
std::unique_ptr<artifact>& item_b);
2425
void manifest_power(human& receiver, std::string power_effect);
2526
void use_power(const human& caster, human& receiver);
2627
int power_intensity(const human& caster);
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
#include "power_of_troy.h"
22

3-
namespace troy {
4-
5-
6-
} // namespace troy
3+
namespace troy {} // namespace troy

exercises/concept/power-of-troy/power_of_troy.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,4 @@ struct power {
1212
std::string effect;
1313
};
1414

15-
16-
1715
} // namespace troy

exercises/concept/power-of-troy/power_of_troy_test.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ TEST_CASE("Create a human", "[task_1]") {
1515
REQUIRE(lanfeust.influenced_by == nullptr);
1616
}
1717

18-
1918
#if defined(EXERCISM_RUN_ALL_TESTS)
2019

2120
TEST_CASE("Give a new artifact to a human", "[task_2]") {
@@ -43,7 +42,7 @@ TEST_CASE("Exchange artifact with another human", "[task_3]") {
4342
TEST_CASE("Manifest power in a human", "[task_4]") {
4443
human cian{};
4544
std::string gift_of_night{"heal"};
46-
45+
4746
manifest_power(cian, gift_of_night);
4847

4948
REQUIRE(cian.own_power != nullptr);
@@ -67,7 +66,6 @@ TEST_CASE("Check power intensity of person without power", "[task_6]") {
6766
REQUIRE(power_intensity(cixi) == 0);
6867
}
6968

70-
7169
TEST_CASE("Check power intensity when not in use", "[task_6]") {
7270
human nicolede{};
7371
manifest_power(nicolede, "enchantment");
@@ -107,7 +105,8 @@ TEST_CASE("Check power intensity drop after usage", "[task_6]") {
107105
manifest_power(palpatine, "force torrent");
108106

109107
// let's start a non-canon duel:
110-
// (Everything in the scope of the brackets is deleted after the brackets close)
108+
// (Everything in the scope of the brackets is deleted after the brackets
109+
// close)
111110
{
112111
human grievous{};
113112
use_power(palpatine, grievous);

0 commit comments

Comments
 (0)