pop-count: rename to eliuds-eggs (#3615)
* Rename the `pop-count` exercise to `eliuds-eggs`. * Regenerated test file and renamed stub and test file. * Changed exercise config file to match change in sub and test file naming. * Corrected typo in exercise config for test file location. --------- Co-authored-by: BethanyG <BethanyG@users.noreply.github.com>
This commit is contained in:
@@ -967,7 +967,7 @@
|
|||||||
"difficulty": 2
|
"difficulty": 2
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "pop-count",
|
"slug": "eliuds-eggs",
|
||||||
"name": "Eliud's Eggs",
|
"name": "Eliud's Eggs",
|
||||||
"uuid": "356e2d29-7efc-4fa3-bec7-8b61c3e967da",
|
"uuid": "356e2d29-7efc-4fa3-bec7-8b61c3e967da",
|
||||||
"practices": ["loops"],
|
"practices": ["loops"],
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
],
|
],
|
||||||
"files": {
|
"files": {
|
||||||
"solution": [
|
"solution": [
|
||||||
"pop_count.py"
|
"eliuds_eggs.py"
|
||||||
],
|
],
|
||||||
"test": [
|
"test": [
|
||||||
"pop_count_test.py"
|
"eliuds_eggs_test.py"
|
||||||
],
|
],
|
||||||
"example": [
|
"example": [
|
||||||
".meta/example.py"
|
".meta/example.py"
|
||||||
@@ -1,15 +1,15 @@
|
|||||||
# These tests are auto-generated with test data from:
|
# These tests are auto-generated with test data from:
|
||||||
# https://github.com/exercism/problem-specifications/tree/main/exercises/pop-count/canonical-data.json
|
# https://github.com/exercism/problem-specifications/tree/main/exercises/eliuds-eggs/canonical-data.json
|
||||||
# File last updated on 2023-10-18
|
# File last updated on 2024-02-02
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from pop_count import (
|
from eliuds_eggs import (
|
||||||
egg_count,
|
egg_count,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class PopCountTest(unittest.TestCase):
|
class EliudsEggsTest(unittest.TestCase):
|
||||||
def test_0_eggs(self):
|
def test_0_eggs(self):
|
||||||
expected = 0
|
expected = 0
|
||||||
self.assertEqual(egg_count(0), expected)
|
self.assertEqual(egg_count(0), expected)
|
||||||
Reference in New Issue
Block a user