Skip to content

Commit

Permalink
Rearranged files and formatted them
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-bodhi committed Oct 5, 2023
1 parent f49fdaa commit a95d49d
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 57 deletions.
2 changes: 1 addition & 1 deletion src/modules/person/Person.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
#include "data/german/GermanFirstNamesFemales.h"
#include "data/german/GermanFirstNamesMales.h"
#include "data/german/GermanLastNames.h"
#include "data/Hobbies.h"
#include "data/indian/IndianFirstNames.h"
#include "data/indian/IndianLastNames.h"
#include "data/italian/ItalianFirstNamesFemales.h"
#include "data/italian/ItalianFirstNamesMales.h"
#include "data/italian/ItalianLastNames.h"
#include "data/JobTitles.h"
#include "data/hobby/Hobbies.h"
#include "data/polish/PolishFirstNamesFemales.h"
#include "data/polish/PolishFirstNamesMales.h"
#include "data/polish/PolishLastNames.h"
Expand Down
6 changes: 3 additions & 3 deletions src/modules/person/PersonTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
#include "data/german/GermanFirstNamesFemales.h"
#include "data/german/GermanFirstNamesMales.h"
#include "data/german/GermanLastNames.h"
#include "data/Hobbies.h"
#include "data/indian/IndianFirstNames.h"
#include "data/indian/IndianLastNames.h"
#include "data/italian/ItalianFirstNamesFemales.h"
#include "data/italian/ItalianFirstNamesMales.h"
#include "data/italian/ItalianLastNames.h"
#include "data/JobTitles.h"
#include "data/hobby/Hobbies.h"
#include "data/polish/PolishFirstNamesFemales.h"
#include "data/polish/PolishFirstNamesMales.h"
#include "data/polish/PolishLastNames.h"
Expand Down Expand Up @@ -323,6 +323,6 @@ TEST_F(PersonTest, shouldGenerateHobby)
{
const auto generatedHobby = Person::hobby();

ASSERT_TRUE(std::ranges::any_of(hobbies, [generatedHobby](const std::string& hobby)
{ return hobby == generatedHobby; }));
ASSERT_TRUE(
std::ranges::any_of(hobbies, [generatedHobby](const std::string& hobby) { return hobby == generatedHobby; }));
}
54 changes: 54 additions & 0 deletions src/modules/person/data/Hobbies.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#pragma once

#include <string>
#include <vector>

namespace faker
{
const std::vector<std::string> hobbies = {
"Playing guitar",
"Reading books",
"Hiking",
"Cooking",
"Painting",
"Photography",
"Swimming",
"Gaming",
"Dancing",
"Traveling",
"Bird watching",
"Coding",
"Singing",
"Collecting stamps",
"Fishing",
"Yoga",
"Sculpting",
"Mountain biking",
"Chess",
"Archery",
"Rock climbing",
"Skiing",
"Writing poetry",
"Meditation",
"Solving puzzles",
"Gardening",
"Playing basketball",
"Volunteering",
"Playing board games",
"Astrophotography",
"Camping",
"Model building",
"Astronomy",
"Watching movies",
"Stargazing",
"Playing tennis",
"Cooking ethnic cuisines",
"Woodworking",
"Baking",
"Calligraphy",
"Pottery",
"Karaoke",
"Scuba diving",
"Metal detecting",
};
}
53 changes: 0 additions & 53 deletions src/modules/person/data/hobby/Hobbies.h

This file was deleted.

0 comments on commit a95d49d

Please sign in to comment.