diff --git a/config.json b/config.json index b2754296..83a39c2e 100644 --- a/config.json +++ b/config.json @@ -586,8 +586,8 @@ "difficulty": 2 }, { - "slug": "pop-count", - "name": "Pop Count", + "slug": "eliuds-eggs", + "name": "Eliuds Eggs", "uuid": "65fa1796-64de-4da7-8050-41b2a9addd9c", "practices": [], "prerequisites": [], 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/PopCount.example.ps1 b/exercises/practice/eliuds-eggs/.meta/EliudsEggs.example.ps1 similarity index 90% rename from exercises/practice/pop-count/.meta/PopCount.example.ps1 rename to exercises/practice/eliuds-eggs/.meta/EliudsEggs.example.ps1 index 7bf12da2..b31e49c6 100644 --- a/exercises/practice/pop-count/.meta/PopCount.example.ps1 +++ b/exercises/practice/eliuds-eggs/.meta/EliudsEggs.example.ps1 @@ -1,4 +1,4 @@ -Function Invoke-PopCount() { +Function Invoke-Counter() { <# .SYNOPSIS Count the number of '1' bit in the binary representation of a decimal number. @@ -11,7 +11,7 @@ Function Invoke-PopCount() { Integer represent the decimal value being displayed. .EXAMPLE - Invoke-PopCount -Value 12345 + Invoke-Counter -Value 12345 Returns: 6 #> [CmdletBinding()] diff --git a/exercises/practice/pop-count/.meta/config.json b/exercises/practice/eliuds-eggs/.meta/config.json similarity index 81% rename from exercises/practice/pop-count/.meta/config.json rename to exercises/practice/eliuds-eggs/.meta/config.json index f7deadf5..13109df5 100644 --- a/exercises/practice/pop-count/.meta/config.json +++ b/exercises/practice/eliuds-eggs/.meta/config.json @@ -4,13 +4,13 @@ ], "files": { "solution": [ - "PopCount.ps1" + "EliudsEggs.ps1" ], "test": [ - "PopCount.tests.ps1" + "EliudsEggs.tests.ps1" ], "example": [ - ".meta/PopCount.example.ps1" + ".meta/EliudsEggs.example.ps1" ] }, "blurb": "Help Eliud count the number of eggs in her chicken coop by counting the number of 1 bits in a binary representation.", 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/PopCount.ps1 b/exercises/practice/eliuds-eggs/EliudsEggs.ps1 similarity index 89% rename from exercises/practice/pop-count/PopCount.ps1 rename to exercises/practice/eliuds-eggs/EliudsEggs.ps1 index 55d985fd..a9ebe1a5 100644 --- a/exercises/practice/pop-count/PopCount.ps1 +++ b/exercises/practice/eliuds-eggs/EliudsEggs.ps1 @@ -1,4 +1,4 @@ -Function Invoke-PopCount() { +Function Invoke-Counter() { <# .SYNOPSIS Count the number of '1' bit in the binary representation of a decimal number. @@ -11,7 +11,7 @@ Function Invoke-PopCount() { Integer represent the decimal value being displayed. .EXAMPLE - Invoke-PopCount -Value 12345 + Invoke-Counter -Value 12345 Returns: 6 #> [CmdletBinding()] diff --git a/exercises/practice/pop-count/PopCount.tests.ps1 b/exercises/practice/eliuds-eggs/EliudsEggs.tests.ps1 similarity index 65% rename from exercises/practice/pop-count/PopCount.tests.ps1 rename to exercises/practice/eliuds-eggs/EliudsEggs.tests.ps1 index a762cb22..a2a542c0 100644 --- a/exercises/practice/pop-count/PopCount.tests.ps1 +++ b/exercises/practice/eliuds-eggs/EliudsEggs.tests.ps1 @@ -1,31 +1,31 @@ BeforeAll { - . "./PopCount.ps1" + . "./EliudsEggs.ps1" } Describe "PopCount test cases" { It "0 eggs" { - $got = Invoke-PopCount -Value 0 + $got = Invoke-Counter -Value 0 $want = 0 $got | Should -BeExactly $want } It "1 egg" { - $got = Invoke-PopCount -Value 16 + $got = Invoke-Counter -Value 16 $want = 1 $got | Should -BeExactly $want } It "4 eggs" { - $got = Invoke-PopCount -Value 89 + $got = Invoke-Counter -Value 89 $want = 4 $got | Should -BeExactly $want } It "13 eggs" { - $got = Invoke-PopCount -Value 2000000000 + $got = Invoke-Counter -Value 2000000000 $want = 13 $got | Should -BeExactly $want