From ceacd39d33d4622865b1ec211921bd1d5c3b11e5 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Fri, 2 Feb 2024 14:19:41 +0100 Subject: [PATCH 1/2] Rename the `pop-count` exercise to `eliuds-eggs`. --- config.json | 2 +- .../practice/{pop-count => eliuds-eggs}/.docs/instructions.md | 0 .../practice/{pop-count => eliuds-eggs}/.docs/introduction.md | 0 exercises/practice/{pop-count => eliuds-eggs}/.meta/config.json | 0 exercises/practice/{pop-count => eliuds-eggs}/.meta/example.c | 0 exercises/practice/{pop-count => eliuds-eggs}/.meta/example.h | 0 exercises/practice/{pop-count => eliuds-eggs}/.meta/tests.toml | 0 exercises/practice/{pop-count => eliuds-eggs}/makefile | 0 exercises/practice/{pop-count => eliuds-eggs}/pop_count.c | 0 exercises/practice/{pop-count => eliuds-eggs}/pop_count.h | 0 .../practice/{pop-count => eliuds-eggs}/test-framework/unity.c | 0 .../practice/{pop-count => eliuds-eggs}/test-framework/unity.h | 0 .../{pop-count => eliuds-eggs}/test-framework/unity_internals.h | 0 exercises/practice/{pop-count => eliuds-eggs}/test_pop_count.c | 0 14 files changed, 1 insertion(+), 1 deletion(-) rename exercises/practice/{pop-count => eliuds-eggs}/.docs/instructions.md (100%) rename exercises/practice/{pop-count => eliuds-eggs}/.docs/introduction.md (100%) rename exercises/practice/{pop-count => eliuds-eggs}/.meta/config.json (100%) rename exercises/practice/{pop-count => eliuds-eggs}/.meta/example.c (100%) rename exercises/practice/{pop-count => eliuds-eggs}/.meta/example.h (100%) rename exercises/practice/{pop-count => eliuds-eggs}/.meta/tests.toml (100%) rename exercises/practice/{pop-count => eliuds-eggs}/makefile (100%) rename exercises/practice/{pop-count => eliuds-eggs}/pop_count.c (100%) rename exercises/practice/{pop-count => eliuds-eggs}/pop_count.h (100%) rename exercises/practice/{pop-count => eliuds-eggs}/test-framework/unity.c (100%) rename exercises/practice/{pop-count => eliuds-eggs}/test-framework/unity.h (100%) rename exercises/practice/{pop-count => eliuds-eggs}/test-framework/unity_internals.h (100%) rename exercises/practice/{pop-count => eliuds-eggs}/test_pop_count.c (100%) diff --git a/config.json b/config.json index 7bae118a0..2b94b08b7 100644 --- a/config.json +++ b/config.json @@ -1029,7 +1029,7 @@ ] }, { - "slug": "pop-count", + "slug": "eliuds-eggs", "name": "Eliud's Eggs", "uuid": "8a813e24-6263-437d-a610-7f5da1456b7f", "practices": [], diff --git a/exercises/practice/pop-count/.docs/instructions.md b/exercises/practice/eliuds-eggs/.docs/instructions.md similarity index 100% rename from exercises/practice/pop-count/.docs/instructions.md rename to exercises/practice/eliuds-eggs/.docs/instructions.md diff --git a/exercises/practice/pop-count/.docs/introduction.md b/exercises/practice/eliuds-eggs/.docs/introduction.md similarity index 100% rename from exercises/practice/pop-count/.docs/introduction.md rename to exercises/practice/eliuds-eggs/.docs/introduction.md diff --git a/exercises/practice/pop-count/.meta/config.json b/exercises/practice/eliuds-eggs/.meta/config.json similarity index 100% rename from exercises/practice/pop-count/.meta/config.json rename to exercises/practice/eliuds-eggs/.meta/config.json diff --git a/exercises/practice/pop-count/.meta/example.c b/exercises/practice/eliuds-eggs/.meta/example.c similarity index 100% rename from exercises/practice/pop-count/.meta/example.c rename to exercises/practice/eliuds-eggs/.meta/example.c diff --git a/exercises/practice/pop-count/.meta/example.h b/exercises/practice/eliuds-eggs/.meta/example.h similarity index 100% rename from exercises/practice/pop-count/.meta/example.h rename to exercises/practice/eliuds-eggs/.meta/example.h diff --git a/exercises/practice/pop-count/.meta/tests.toml b/exercises/practice/eliuds-eggs/.meta/tests.toml similarity index 100% rename from exercises/practice/pop-count/.meta/tests.toml rename to exercises/practice/eliuds-eggs/.meta/tests.toml diff --git a/exercises/practice/pop-count/makefile b/exercises/practice/eliuds-eggs/makefile similarity index 100% rename from exercises/practice/pop-count/makefile rename to exercises/practice/eliuds-eggs/makefile diff --git a/exercises/practice/pop-count/pop_count.c b/exercises/practice/eliuds-eggs/pop_count.c similarity index 100% rename from exercises/practice/pop-count/pop_count.c rename to exercises/practice/eliuds-eggs/pop_count.c diff --git a/exercises/practice/pop-count/pop_count.h b/exercises/practice/eliuds-eggs/pop_count.h similarity index 100% rename from exercises/practice/pop-count/pop_count.h rename to exercises/practice/eliuds-eggs/pop_count.h diff --git a/exercises/practice/pop-count/test-framework/unity.c b/exercises/practice/eliuds-eggs/test-framework/unity.c similarity index 100% rename from exercises/practice/pop-count/test-framework/unity.c rename to exercises/practice/eliuds-eggs/test-framework/unity.c diff --git a/exercises/practice/pop-count/test-framework/unity.h b/exercises/practice/eliuds-eggs/test-framework/unity.h similarity index 100% rename from exercises/practice/pop-count/test-framework/unity.h rename to exercises/practice/eliuds-eggs/test-framework/unity.h diff --git a/exercises/practice/pop-count/test-framework/unity_internals.h b/exercises/practice/eliuds-eggs/test-framework/unity_internals.h similarity index 100% rename from exercises/practice/pop-count/test-framework/unity_internals.h rename to exercises/practice/eliuds-eggs/test-framework/unity_internals.h diff --git a/exercises/practice/pop-count/test_pop_count.c b/exercises/practice/eliuds-eggs/test_pop_count.c similarity index 100% rename from exercises/practice/pop-count/test_pop_count.c rename to exercises/practice/eliuds-eggs/test_pop_count.c From c2328ccbfcb305bdecbc86e22a2d9c559a009bd0 Mon Sep 17 00:00:00 2001 From: Ryan Hartlage Date: Fri, 2 Feb 2024 08:33:48 -0500 Subject: [PATCH 2/2] Fix Eliud's Eggs --- exercises/practice/eliuds-eggs/.meta/config.json | 6 +++--- exercises/practice/eliuds-eggs/.meta/example.c | 2 +- exercises/practice/eliuds-eggs/.meta/example.h | 4 ++-- exercises/practice/eliuds-eggs/eliuds_eggs.c | 1 + exercises/practice/eliuds-eggs/eliuds_eggs.h | 4 ++++ exercises/practice/eliuds-eggs/pop_count.c | 1 - exercises/practice/eliuds-eggs/pop_count.h | 4 ---- .../eliuds-eggs/{test_pop_count.c => test_eliuds_eggs.c} | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 exercises/practice/eliuds-eggs/eliuds_eggs.c create mode 100644 exercises/practice/eliuds-eggs/eliuds_eggs.h delete mode 100644 exercises/practice/eliuds-eggs/pop_count.c delete mode 100644 exercises/practice/eliuds-eggs/pop_count.h rename exercises/practice/eliuds-eggs/{test_pop_count.c => test_eliuds_eggs.c} (96%) diff --git a/exercises/practice/eliuds-eggs/.meta/config.json b/exercises/practice/eliuds-eggs/.meta/config.json index 1a5fadef5..4d3f640f0 100644 --- a/exercises/practice/eliuds-eggs/.meta/config.json +++ b/exercises/practice/eliuds-eggs/.meta/config.json @@ -4,11 +4,11 @@ ], "files": { "solution": [ - "pop_count.c", - "pop_count.h" + "eliuds_eggs.c", + "eliuds_eggs.h" ], "test": [ - "test_pop_count.c" + "test_eliuds_eggs.c" ], "example": [ ".meta/example.c", diff --git a/exercises/practice/eliuds-eggs/.meta/example.c b/exercises/practice/eliuds-eggs/.meta/example.c index 711f7cfc5..596b89f7f 100644 --- a/exercises/practice/eliuds-eggs/.meta/example.c +++ b/exercises/practice/eliuds-eggs/.meta/example.c @@ -1,4 +1,4 @@ -#include "pop_count.h" +#include "eliuds_eggs.h" unsigned int egg_count(unsigned int value) { diff --git a/exercises/practice/eliuds-eggs/.meta/example.h b/exercises/practice/eliuds-eggs/.meta/example.h index 6498987f4..aa353a117 100644 --- a/exercises/practice/eliuds-eggs/.meta/example.h +++ b/exercises/practice/eliuds-eggs/.meta/example.h @@ -1,5 +1,5 @@ -#ifndef POP_COUNT_H -#define POP_COUNT_H +#ifndef ELIUDS_EGGS_H +#define ELIUDS_EGGS_H unsigned int egg_count(unsigned int value); diff --git a/exercises/practice/eliuds-eggs/eliuds_eggs.c b/exercises/practice/eliuds-eggs/eliuds_eggs.c new file mode 100644 index 000000000..4beaac5ac --- /dev/null +++ b/exercises/practice/eliuds-eggs/eliuds_eggs.c @@ -0,0 +1 @@ +#include "eliuds_eggs.h" diff --git a/exercises/practice/eliuds-eggs/eliuds_eggs.h b/exercises/practice/eliuds-eggs/eliuds_eggs.h new file mode 100644 index 000000000..361976cdf --- /dev/null +++ b/exercises/practice/eliuds-eggs/eliuds_eggs.h @@ -0,0 +1,4 @@ +#ifndef ELIUDS_EGGS_H +#define ELIUDS_EGGS_H + +#endif diff --git a/exercises/practice/eliuds-eggs/pop_count.c b/exercises/practice/eliuds-eggs/pop_count.c deleted file mode 100644 index 93cd502d9..000000000 --- a/exercises/practice/eliuds-eggs/pop_count.c +++ /dev/null @@ -1 +0,0 @@ -#include "pop_count.h" diff --git a/exercises/practice/eliuds-eggs/pop_count.h b/exercises/practice/eliuds-eggs/pop_count.h deleted file mode 100644 index 1d0fb67ba..000000000 --- a/exercises/practice/eliuds-eggs/pop_count.h +++ /dev/null @@ -1,4 +0,0 @@ -#ifndef POP_COUNT_H -#define POP_COUNT_H - -#endif diff --git a/exercises/practice/eliuds-eggs/test_pop_count.c b/exercises/practice/eliuds-eggs/test_eliuds_eggs.c similarity index 96% rename from exercises/practice/eliuds-eggs/test_pop_count.c rename to exercises/practice/eliuds-eggs/test_eliuds_eggs.c index 23d6b9e69..5c20abb74 100644 --- a/exercises/practice/eliuds-eggs/test_pop_count.c +++ b/exercises/practice/eliuds-eggs/test_eliuds_eggs.c @@ -1,5 +1,5 @@ #include "test-framework/unity.h" -#include "pop_count.h" +#include "eliuds_eggs.h" void setUp(void) {