Skip to content

Commit

Permalink
Complete the renaming pop-count => eliuds-eggs, to satisfy the test r…
Browse files Browse the repository at this point in the history
…unner (#326)
  • Loading branch information
glennj authored Mar 1, 2024
1 parent 6c0211a commit 7ec8d04
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions exercises/practice/eliuds-eggs/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
],
"files": {
"solution": [
"pop-count.tcl"
"eliuds-eggs.tcl"
],
"test": [
"pop-count.test"
"eliuds-eggs.test"
],
"example": [
".meta/example.tcl"
]
},
"blurb": "Help Eliud count the number of eggs in her chicken coop by counting the number of 1 bits in a binary representation.",
"source": "Christian Willner, Eric Willigers",
"source_url": "https://forum.exercism.org/t/new-exercise-suggestion-pop-count/7632/5"
"source_url": "https://forum.exercism.org/t/new-exercise-suggestion-eliuds-eggs/7632/5"
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@ namespace import ::tcltest::*
source testHelpers.tcl

############################################################
source "pop-count.tcl"
source "eliuds-eggs.tcl"

test pop-count-1 "0 eggs" -body {
test eliuds-eggs-1 "0 eggs" -body {
eggCount 0
} -returnCodes ok -result 0

skip pop-count-2
test pop-count-2 "1 egg" -body {
skip eliuds-eggs-2
test eliuds-eggs-2 "1 egg" -body {
eggCount 16
} -returnCodes ok -result 1

skip pop-count-3
test pop-count-3 "4 eggs" -body {
skip eliuds-eggs-3
test eliuds-eggs-3 "4 eggs" -body {
eggCount 89
} -returnCodes ok -result 4

skip pop-count-4
test pop-count-4 "13 eggs" -body {
skip eliuds-eggs-4
test eliuds-eggs-4 "13 eggs" -body {
eggCount 2000000000
} -returnCodes ok -result 13

Expand Down

0 comments on commit 7ec8d04

Please sign in to comment.