Skip to content

house: add to track#709

Merged
FridaTveit merged 1 commit into
exercism:masterfrom
Smarticles101:house-implement
Aug 7, 2017
Merged

house: add to track#709
FridaTveit merged 1 commit into
exercism:masterfrom
Smarticles101:house-implement

Conversation

@Smarticles101
Copy link
Copy Markdown
Member


Reviewer Resources:

Track Policies

@Smarticles101 Smarticles101 force-pushed the house-implement branch 2 times, most recently from 04f348c to 1a95491 Compare July 22, 2017 20:30
@Smarticles101 Smarticles101 changed the title house: dibs on implementing house: add to track Jul 22, 2017
Copy link
Copy Markdown
Contributor

@FridaTveit FridaTveit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've left a couple of small comments, but overall it looks great @Smarticles101! :)

@@ -0,0 +1,51 @@
class House {
static final String[] CHARACTERS = {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be private I think?

"horse and the hound and the horn"
};

static final String[] ACTIONS = {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could also be private?

int startVerse = 1;
int endVerse = 12;

assertEquals(expected, house.verses(startVerse, endVerse));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe having a method called sing or singWholeSong or something might be useful? So that the caller doesn't have to know that there are 12 verses?

Copy link
Copy Markdown
Contributor

@FridaTveit FridaTveit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks @Smarticles101! :)

@FridaTveit FridaTveit merged commit d55c830 into exercism:master Aug 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants