Skip to content

Commit

Permalink
GREEN: Teasing out duplication in position
Browse files Browse the repository at this point in the history
  • Loading branch information
Danil committed Nov 4, 2017
1 parent d9d6e58 commit 48a7632
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/vocumsineratio/kata/mars/TestableCore.java
Expand Up @@ -34,8 +34,10 @@ static void runTest(InputStream in, PrintStream out) {
input.set(4, "M");
}
if ("4 1 E".equals(input.get(3)) && "M".equals(input.get(4))) {

String [] position = input.get(3).split(" ");
position[0] = "5";
position[0] = String.valueOf(1 + Integer.valueOf(position[0]));

input.set(3, String.join(" ", position));
input.set(4, "");
}
Expand Down

0 comments on commit 48a7632

Please sign in to comment.