Skip to content

Commit

Permalink
pop-count: rename to eliuds-eggs (#288)
Browse files Browse the repository at this point in the history
* Rename the `pop-count` exercise to `eliuds-eggs`.

* pop count to eliud's eggs

---------

Co-authored-by: András B Nagy <[email protected]>
  • Loading branch information
ErikSchierboom and BNAndras authored Feb 3, 2024
1 parent b356542 commit 138e02c
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@
"difficulty": 3
},
{
"slug": "pop-count",
"slug": "eliuds-eggs",
"name": "Eliud's Eggs",
"uuid": "93f6a10b-4b6c-4e2b-a466-a10690473c09",
"practices": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"files": {
"solution": [
"src/PopCount.hx"
"src/EliudsEggs.hx"
],
"test": [
"test/Test.hx"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@ using buddy.Should;

class Test extends buddy.SingleSuite {
public function new() {
describe("Pop count tests", {
describe("Eliud's Eggs tests", {
it("no factors", {
PopCount.eggCount(0).should.be(0);
EliudsEggs.eggCount(0).should.be(0);
});

xit("one egg", {
PopCount.eggCount(16).should.be(1);
EliudsEggs.eggCount(16).should.be(1);
});

xit("four eggs", {
PopCount.eggCount(89).should.be(4);
EliudsEggs.eggCount(89).should.be(4);
});

xit("Thirteen eggs", {
PopCount.eggCount(2000000000).should.be(13);
EliudsEggs.eggCount(2000000000).should.be(13);
});
});
}
Expand Down

0 comments on commit 138e02c

Please sign in to comment.