-
-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Rename the `pop-count` exercise to `eliuds-eggs`. * reorder exercise * Rename module and files * fix typo * remove stray file --------- Co-authored-by: Jeremie Gillet <[email protected]>
- Loading branch information
1 parent
1fd78c1
commit 24d2fbb
Showing
13 changed files
with
50 additions
and
50 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
2 changes: 1 addition & 1 deletion
2
...cises/practice/pop-count/.meta/example.ex → ...ses/practice/eliuds-eggs/.meta/example.ex
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...cises/practice/pop-count/lib/pop_count.ex → ...s/practice/eliuds-eggs/lib/eliuds_eggs.ex
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 @@ | ||
defmodule PopCount do | ||
defmodule EliudsEggs do | ||
@doc """ | ||
Given the number, count the number of eggs. | ||
""" | ||
|
4 changes: 2 additions & 2 deletions
4
exercises/practice/pop-count/mix.exs → exercises/practice/eliuds-eggs/mix.exs
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
defmodule EliudsEggsTest do | ||
use ExUnit.Case | ||
|
||
describe "egg count" do | ||
test "0 eggs" do | ||
assert EliudsEggs.egg_count(0) == 0 | ||
end | ||
|
||
@tag :pending | ||
test "1 egg" do | ||
assert EliudsEggs.egg_count(16) == 1 | ||
end | ||
|
||
@tag :pending | ||
test "4 eggs" do | ||
assert EliudsEggs.egg_count(89) == 4 | ||
end | ||
|
||
@tag :pending | ||
test "13 eggs" do | ||
assert EliudsEggs.egg_count(2_000_000_000) == 13 | ||
end | ||
|
||
@tag :pending | ||
test "100 eggs" do | ||
assert EliudsEggs.egg_count(1_267_650_600_228_229_401_496_703_205_375) == 100 | ||
end | ||
end | ||
end |
File renamed without changes.
This file was deleted.
Oops, something went wrong.