Feature: adding matériel to Billy.

No conformity is done when adding things (dagger or bow for example)
This commit is contained in:
Pcornat 2024-09-02 12:46:04 +02:00
parent 6ad47b12bf
commit 75f8db9f5a
Signed by: Pcornat
GPG key ID: E0326CC678A00BDD
6 changed files with 124 additions and 37 deletions

View file

@ -148,21 +148,7 @@ TEST_CASE("[D] Pushing popping BillyObjects", "[pushpop][0]") {
}
TEST_CASE("[D] Printing Billy's objects", "[printing]") {
constexpr std::array<BillyObjects::billyObject, 12> all_objects{
weapons::Sword,
weapons::Lance,
weapons::Morgenstern,
weapons::Bow,
equipments::Chainmail,
equipments::CookingPot,
equipments::PamphletTourist,
equipments::MedicKit,
tools::Fourche,
tools::Dagger,
tools::RockClimbingKit,
tools::SackOfGrain,
};
for (const auto &object: all_objects) {
for (const auto &object: BillyObjects::all_objects) {
REQUIRE_NOTHROW(BillyObjects::billy_object_to_string(object));
}
}