Skip to content

Commit

Permalink
Fix file names
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Feb 15, 2024
1 parent 3415cba commit 27e753d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 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,10 +4,10 @@
],
"files": {
"solution": [
"src/pop_count.gleam"
"src/eliuds_eggs.gleam"
],
"test": [
"test/pop_count_test.gleam"
"test/eliuds_eggs_test.gleam"
],
"example": [
".meta/example.gleam"
Expand All @@ -19,5 +19,5 @@
},
"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"
}
2 changes: 1 addition & 1 deletion exercises/practice/eliuds-eggs/gleam.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name = "pop_count"
name = "eliuds_eggs"
version = "0.1.0"

[dependencies]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
import exercism/test_runner
import exercism/should
import pop_count
import eliuds_eggs

pub fn main() {
test_runner.main()
}

pub fn zero_eggs_test() {
pop_count.egg_count(0)
eliuds_eggs.egg_count(0)
|> should.equal(0)
}

pub fn one_egg_test() {
pop_count.egg_count(16)
eliuds_eggs.egg_count(16)
|> should.equal(1)
}

pub fn four_eggs_test() {
pop_count.egg_count(89)
eliuds_eggs.egg_count(89)
|> should.equal(4)
}

pub fn thirteen_eggs_test() {
pop_count.egg_count(2_000_000_000)
eliuds_eggs.egg_count(2_000_000_000)
|> should.equal(13)
}

0 comments on commit 27e753d

Please sign in to comment.