Skip to content

Commit

Permalink
Construção dos primeiros casos de testes.
Browse files Browse the repository at this point in the history
  • Loading branch information
wegneto committed Apr 17, 2015
1 parent 67ed8d6 commit 1e4ffcf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion codejam/src/main/java/codejam/Milkshakes.java
Expand Up @@ -2,7 +2,7 @@

public class Milkshakes {

public String getOutput() {
public String getBatches() {
return "Case #1: 1 0 0 0 0";
}

Expand Down
10 changes: 8 additions & 2 deletions codejam/src/test/java/codejam/MilkshakesTest.java
Expand Up @@ -7,9 +7,15 @@
public class MilkshakesTest {

@Test
public void test1() {
String output = (new Milkshakes()).getOutput();
public void getBatchesForThreeClientsAndFiveFlavors() {
String output = (new Milkshakes()).getBatches();
assertEquals("Case #1: 1 0 0 0 0", output);
}

@Test
public void getBatchesForTwoClientsOneFlavorOneMalted() {
String output = (new Milkshakes()).getBatches();
assertEquals("Case #1: IMPOSSIBLE", output);
}

}

0 comments on commit 1e4ffcf

Please sign in to comment.