-
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3415cba
commit 27e753d
Showing
4 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | ||
|
File renamed without changes.
10 changes: 5 additions & 5 deletions
10
...ice/eliuds-eggs/test/pop_count_test.gleam → ...e/eliuds-eggs/test/eliuds_eggs_test.gleam
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |