From 38838d8a777729ba314e99d88f4f005077818a2f Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 30 Sep 2016 16:31:20 +0300 Subject: [PATCH 01/18] besouro automatic message --- .besouro/20160930163040936/actions.txt | 4 ++ .../20160930163040936/besouroEpisodes.txt | 0 .besouro/20160930163040936/disagreements.txt | 0 .../randomHeuristicEpisodes.txt | 0 .besouro/20160930163040936/userComments.txt | 0 .besouro/20160930163040936/zorroEpisodes.txt | 0 src/RomanNumerals.java | 39 ++++++++++++++++++- tests/TestRomanNumerals.java | 11 +++++- 8 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 .besouro/20160930163040936/actions.txt create mode 100644 .besouro/20160930163040936/besouroEpisodes.txt create mode 100644 .besouro/20160930163040936/disagreements.txt create mode 100644 .besouro/20160930163040936/randomHeuristicEpisodes.txt create mode 100644 .besouro/20160930163040936/userComments.txt create mode 100644 .besouro/20160930163040936/zorroEpisodes.txt diff --git a/.besouro/20160930163040936/actions.txt b/.besouro/20160930163040936/actions.txt new file mode 100644 index 0000000..489adfe --- /dev/null +++ b/.besouro/20160930163040936/actions.txt @@ -0,0 +1,4 @@ +FileOpenedAction 1475242241337 TestRomanNumerals.java 305 1 4 0 +UnitTestCaseAction 1475242245986 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475242245988 TestRomanNumerals.java FAIL +EditAction 1475242279768 TestRomanNumerals.java 282 1 3 1 diff --git a/.besouro/20160930163040936/besouroEpisodes.txt b/.besouro/20160930163040936/besouroEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20160930163040936/disagreements.txt b/.besouro/20160930163040936/disagreements.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20160930163040936/randomHeuristicEpisodes.txt b/.besouro/20160930163040936/randomHeuristicEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20160930163040936/userComments.txt b/.besouro/20160930163040936/userComments.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20160930163040936/zorroEpisodes.txt b/.besouro/20160930163040936/zorroEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 20904f0..39aebdc 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -1,8 +1,45 @@ public class RomanNumerals { + + + public RomanNumerals() { + } + public int convertToInteger(String romanNum) { + + romanNum.toUpperCase(); + + if (romanNum.equals("I")) { + return 1; + + } else if (romanNum == "II") { + + return 2; + } else if (romanNum == "III") { + + return 3; + } else if (romanNum == "IV") { + + return 4; + } else if (romanNum == "V") { + + return 5; + } else if (romanNum == "VI") { + + return 6; + } else if (romanNum == "VII") { + + return 7; + } else if (romanNum == "VIII") { + + return 8; + } else if (romanNum == "IX") { + + return 9; + } + // To be Implemented return 0; - + } } diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 5d1de75..17eb2a9 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -6,7 +6,16 @@ public class TestRomanNumerals { @Test public void test() { - fail("Not yet implemented"); + //fail("Not yet implemented"); + + RomanNumerals obj = new RomanNumerals(); + int num = obj.convertToInteger("I"); + + assertEquals("", 1, num); + + + + } } From eaf316c3cd1e9b763a7605301261a5616b0be6eb Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 30 Sep 2016 16:31:32 +0300 Subject: [PATCH 02/18] besouro automatic message --- .besouro/20160930163040936/actions.txt | 3 +++ .besouro/20160930163040936/besouroEpisodes.txt | 1 + .besouro/20160930163040936/randomHeuristicEpisodes.txt | 1 + .besouro/20160930163040936/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 2 +- 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.besouro/20160930163040936/actions.txt b/.besouro/20160930163040936/actions.txt index 489adfe..a08e802 100644 --- a/.besouro/20160930163040936/actions.txt +++ b/.besouro/20160930163040936/actions.txt @@ -2,3 +2,6 @@ FileOpenedAction 1475242241337 TestRomanNumerals.java 305 1 4 0 UnitTestCaseAction 1475242245986 TestRomanNumerals.java FAIL UnitTestSessionAction 1475242245988 TestRomanNumerals.java FAIL EditAction 1475242279768 TestRomanNumerals.java 282 1 3 1 +UnitTestCaseAction 1475242281329 TestRomanNumerals.java OK +UnitTestSessionAction 1475242281331 TestRomanNumerals.java OK +EditAction 1475242292287 TestRomanNumerals.java 282 1 3 1 diff --git a/.besouro/20160930163040936/besouroEpisodes.txt b/.besouro/20160930163040936/besouroEpisodes.txt index e69de29..3b745ef 100644 --- a/.besouro/20160930163040936/besouroEpisodes.txt +++ b/.besouro/20160930163040936/besouroEpisodes.txt @@ -0,0 +1 @@ +1475242281331 test-addition 1 39 true diff --git a/.besouro/20160930163040936/randomHeuristicEpisodes.txt b/.besouro/20160930163040936/randomHeuristicEpisodes.txt index e69de29..3b745ef 100644 --- a/.besouro/20160930163040936/randomHeuristicEpisodes.txt +++ b/.besouro/20160930163040936/randomHeuristicEpisodes.txt @@ -0,0 +1 @@ +1475242281331 test-addition 1 39 true diff --git a/.besouro/20160930163040936/zorroEpisodes.txt b/.besouro/20160930163040936/zorroEpisodes.txt index e69de29..d57ef7b 100644 --- a/.besouro/20160930163040936/zorroEpisodes.txt +++ b/.besouro/20160930163040936/zorroEpisodes.txt @@ -0,0 +1 @@ +1475242281331 test-addition 1 39 false diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 17eb2a9..f93de4f 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -9,7 +9,7 @@ public void test() { //fail("Not yet implemented"); RomanNumerals obj = new RomanNumerals(); - int num = obj.convertToInteger("I"); + int num = obj.convertToInteger("i"); assertEquals("", 1, num); From b78c6db41d5cf2da410fb20d887b72362cd7f351 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 30 Sep 2016 16:31:45 +0300 Subject: [PATCH 03/18] besouro automatic message --- .besouro/20160930163040936/actions.txt | 3 +++ tests/TestRomanNumerals.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20160930163040936/actions.txt b/.besouro/20160930163040936/actions.txt index a08e802..5c96209 100644 --- a/.besouro/20160930163040936/actions.txt +++ b/.besouro/20160930163040936/actions.txt @@ -5,3 +5,6 @@ EditAction 1475242279768 TestRomanNumerals.java 282 1 3 1 UnitTestCaseAction 1475242281329 TestRomanNumerals.java OK UnitTestSessionAction 1475242281331 TestRomanNumerals.java OK EditAction 1475242292287 TestRomanNumerals.java 282 1 3 1 +UnitTestCaseAction 1475242293877 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475242293878 TestRomanNumerals.java FAIL +EditAction 1475242304653 TestRomanNumerals.java 282 1 3 1 diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index f93de4f..17eb2a9 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -9,7 +9,7 @@ public void test() { //fail("Not yet implemented"); RomanNumerals obj = new RomanNumerals(); - int num = obj.convertToInteger("i"); + int num = obj.convertToInteger("I"); assertEquals("", 1, num); From 6fd79e5046b046ff1f30f6495dd34243386c958b Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 30 Sep 2016 16:39:49 +0300 Subject: [PATCH 04/18] besouro automatic message --- .besouro/20160930163040936/actions.txt | 3 +++ .besouro/20160930163040936/besouroEpisodes.txt | 1 + .../randomHeuristicEpisodes.txt | 1 + .besouro/20160930163040936/zorroEpisodes.txt | 1 + src/RomanNumerals.java | 17 ++++++++--------- 5 files changed, 14 insertions(+), 9 deletions(-) diff --git a/.besouro/20160930163040936/actions.txt b/.besouro/20160930163040936/actions.txt index 5c96209..4918194 100644 --- a/.besouro/20160930163040936/actions.txt +++ b/.besouro/20160930163040936/actions.txt @@ -8,3 +8,6 @@ EditAction 1475242292287 TestRomanNumerals.java 282 1 3 1 UnitTestCaseAction 1475242293877 TestRomanNumerals.java FAIL UnitTestSessionAction 1475242293878 TestRomanNumerals.java FAIL EditAction 1475242304653 TestRomanNumerals.java 282 1 3 1 +UnitTestCaseAction 1475242306104 TestRomanNumerals.java OK +UnitTestSessionAction 1475242306105 TestRomanNumerals.java OK +EditAction 1475242788919 RomanNumerals.java 652 2 3 0 diff --git a/.besouro/20160930163040936/besouroEpisodes.txt b/.besouro/20160930163040936/besouroEpisodes.txt index 3b745ef..697d5b8 100644 --- a/.besouro/20160930163040936/besouroEpisodes.txt +++ b/.besouro/20160930163040936/besouroEpisodes.txt @@ -1 +1,2 @@ 1475242281331 test-addition 1 39 true +1475242306105 regression 2 13 true diff --git a/.besouro/20160930163040936/randomHeuristicEpisodes.txt b/.besouro/20160930163040936/randomHeuristicEpisodes.txt index 3b745ef..e466043 100644 --- a/.besouro/20160930163040936/randomHeuristicEpisodes.txt +++ b/.besouro/20160930163040936/randomHeuristicEpisodes.txt @@ -1 +1,2 @@ 1475242281331 test-addition 1 39 true +1475242306105 regression 2 13 false diff --git a/.besouro/20160930163040936/zorroEpisodes.txt b/.besouro/20160930163040936/zorroEpisodes.txt index d57ef7b..b8d1df4 100644 --- a/.besouro/20160930163040936/zorroEpisodes.txt +++ b/.besouro/20160930163040936/zorroEpisodes.txt @@ -1 +1,2 @@ 1475242281331 test-addition 1 39 false +1475242306105 regression 2 24 false diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 39aebdc..116acad 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -1,39 +1,38 @@ public class RomanNumerals { - public RomanNumerals() { } public int convertToInteger(String romanNum) { - romanNum.toUpperCase(); + romanNum = romanNum.toUpperCase(); if (romanNum.equals("I")) { return 1; - } else if (romanNum == "II") { + } else if (romanNum.equals("II")) { return 2; } else if (romanNum == "III") { return 3; - } else if (romanNum == "IV") { + } else if (romanNum.equals("IV")) { return 4; - } else if (romanNum == "V") { + } else if (romanNum.equals("V")) { return 5; - } else if (romanNum == "VI") { + } else if (romanNum.equals("VI")) { return 6; - } else if (romanNum == "VII") { + } else if (romanNum.equals("VII")) { return 7; - } else if (romanNum == "VIII") { + } else if (romanNum.equals("VIII")) { return 8; - } else if (romanNum == "IX") { + } else if (romanNum.equals("IX")) { return 9; } From b6282d21e4d306041afb2f6033e34630d0c36770 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 30 Sep 2016 16:40:01 +0300 Subject: [PATCH 05/18] besouro automatic message --- .besouro/20160930163040936/actions.txt | 3 +++ .besouro/20160930163040936/besouroEpisodes.txt | 1 + .besouro/20160930163040936/randomHeuristicEpisodes.txt | 1 + .besouro/20160930163040936/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 2 +- 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.besouro/20160930163040936/actions.txt b/.besouro/20160930163040936/actions.txt index 4918194..7c52b30 100644 --- a/.besouro/20160930163040936/actions.txt +++ b/.besouro/20160930163040936/actions.txt @@ -11,3 +11,6 @@ EditAction 1475242304653 TestRomanNumerals.java 282 1 3 1 UnitTestCaseAction 1475242306104 TestRomanNumerals.java OK UnitTestSessionAction 1475242306105 TestRomanNumerals.java OK EditAction 1475242788919 RomanNumerals.java 652 2 3 0 +UnitTestCaseAction 1475242790530 TestRomanNumerals.java OK +UnitTestSessionAction 1475242790531 TestRomanNumerals.java OK +EditAction 1475242801310 TestRomanNumerals.java 282 1 3 1 diff --git a/.besouro/20160930163040936/besouroEpisodes.txt b/.besouro/20160930163040936/besouroEpisodes.txt index 697d5b8..5ddaae4 100644 --- a/.besouro/20160930163040936/besouroEpisodes.txt +++ b/.besouro/20160930163040936/besouroEpisodes.txt @@ -1,2 +1,3 @@ 1475242281331 test-addition 1 39 true 1475242306105 regression 2 13 true +1475242790531 regression 1 1 true diff --git a/.besouro/20160930163040936/randomHeuristicEpisodes.txt b/.besouro/20160930163040936/randomHeuristicEpisodes.txt index e466043..2d77042 100644 --- a/.besouro/20160930163040936/randomHeuristicEpisodes.txt +++ b/.besouro/20160930163040936/randomHeuristicEpisodes.txt @@ -1,2 +1,3 @@ 1475242281331 test-addition 1 39 true 1475242306105 regression 2 13 false +1475242790531 regression 1 1 true diff --git a/.besouro/20160930163040936/zorroEpisodes.txt b/.besouro/20160930163040936/zorroEpisodes.txt index b8d1df4..89e4656 100644 --- a/.besouro/20160930163040936/zorroEpisodes.txt +++ b/.besouro/20160930163040936/zorroEpisodes.txt @@ -1,2 +1,3 @@ 1475242281331 test-addition 1 39 false 1475242306105 regression 2 24 false +1475242790531 regression 1 484 false diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 17eb2a9..f93de4f 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -9,7 +9,7 @@ public void test() { //fail("Not yet implemented"); RomanNumerals obj = new RomanNumerals(); - int num = obj.convertToInteger("I"); + int num = obj.convertToInteger("i"); assertEquals("", 1, num); From 49b2616b7dbeb1d50a86f55cef24b701705db304 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 30 Sep 2016 16:40:30 +0300 Subject: [PATCH 06/18] besouro automatic message --- .besouro/20160930163040936/actions.txt | 3 +++ .besouro/20160930163040936/besouroEpisodes.txt | 1 + .besouro/20160930163040936/randomHeuristicEpisodes.txt | 1 + .besouro/20160930163040936/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 4 ++-- 5 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.besouro/20160930163040936/actions.txt b/.besouro/20160930163040936/actions.txt index 7c52b30..820ae45 100644 --- a/.besouro/20160930163040936/actions.txt +++ b/.besouro/20160930163040936/actions.txt @@ -14,3 +14,6 @@ EditAction 1475242788919 RomanNumerals.java 652 2 3 0 UnitTestCaseAction 1475242790530 TestRomanNumerals.java OK UnitTestSessionAction 1475242790531 TestRomanNumerals.java OK EditAction 1475242801310 TestRomanNumerals.java 282 1 3 1 +UnitTestCaseAction 1475242802842 TestRomanNumerals.java OK +UnitTestSessionAction 1475242802843 TestRomanNumerals.java OK +EditAction 1475242830503 TestRomanNumerals.java 283 1 3 1 diff --git a/.besouro/20160930163040936/besouroEpisodes.txt b/.besouro/20160930163040936/besouroEpisodes.txt index 5ddaae4..09395ad 100644 --- a/.besouro/20160930163040936/besouroEpisodes.txt +++ b/.besouro/20160930163040936/besouroEpisodes.txt @@ -1,3 +1,4 @@ 1475242281331 test-addition 1 39 true 1475242306105 regression 2 13 true 1475242790531 regression 1 1 true +1475242802843 regression 1 1 true diff --git a/.besouro/20160930163040936/randomHeuristicEpisodes.txt b/.besouro/20160930163040936/randomHeuristicEpisodes.txt index 2d77042..9635657 100644 --- a/.besouro/20160930163040936/randomHeuristicEpisodes.txt +++ b/.besouro/20160930163040936/randomHeuristicEpisodes.txt @@ -1,3 +1,4 @@ 1475242281331 test-addition 1 39 true 1475242306105 regression 2 13 false 1475242790531 regression 1 1 true +1475242802843 regression 1 1 false diff --git a/.besouro/20160930163040936/zorroEpisodes.txt b/.besouro/20160930163040936/zorroEpisodes.txt index 89e4656..6a3585a 100644 --- a/.besouro/20160930163040936/zorroEpisodes.txt +++ b/.besouro/20160930163040936/zorroEpisodes.txt @@ -1,3 +1,4 @@ 1475242281331 test-addition 1 39 false 1475242306105 regression 2 24 false 1475242790531 regression 1 484 false +1475242802843 regression 1 12 false diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index f93de4f..5b9dc54 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -9,9 +9,9 @@ public void test() { //fail("Not yet implemented"); RomanNumerals obj = new RomanNumerals(); - int num = obj.convertToInteger("i"); + int num = obj.convertToInteger("iv"); - assertEquals("", 1, num); + assertEquals("", 4, num); From 36f4fb26b889c43ddc2b6d5143b5891641bc0bd8 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 30 Sep 2016 16:40:47 +0300 Subject: [PATCH 07/18] besouro automatic message --- .besouro/20160930163040936/actions.txt | 3 +++ .besouro/20160930163040936/besouroEpisodes.txt | 1 + .besouro/20160930163040936/randomHeuristicEpisodes.txt | 1 + .besouro/20160930163040936/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 4 ++-- 5 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.besouro/20160930163040936/actions.txt b/.besouro/20160930163040936/actions.txt index 820ae45..146aaaf 100644 --- a/.besouro/20160930163040936/actions.txt +++ b/.besouro/20160930163040936/actions.txt @@ -17,3 +17,6 @@ EditAction 1475242801310 TestRomanNumerals.java 282 1 3 1 UnitTestCaseAction 1475242802842 TestRomanNumerals.java OK UnitTestSessionAction 1475242802843 TestRomanNumerals.java OK EditAction 1475242830503 TestRomanNumerals.java 283 1 3 1 +UnitTestCaseAction 1475242831929 TestRomanNumerals.java OK +UnitTestSessionAction 1475242831930 TestRomanNumerals.java OK +EditAction 1475242847443 TestRomanNumerals.java 282 1 3 1 diff --git a/.besouro/20160930163040936/besouroEpisodes.txt b/.besouro/20160930163040936/besouroEpisodes.txt index 09395ad..9157073 100644 --- a/.besouro/20160930163040936/besouroEpisodes.txt +++ b/.besouro/20160930163040936/besouroEpisodes.txt @@ -2,3 +2,4 @@ 1475242306105 regression 2 13 true 1475242790531 regression 1 1 true 1475242802843 regression 1 1 true +1475242831930 regression 1 1 true diff --git a/.besouro/20160930163040936/randomHeuristicEpisodes.txt b/.besouro/20160930163040936/randomHeuristicEpisodes.txt index 9635657..71bc21c 100644 --- a/.besouro/20160930163040936/randomHeuristicEpisodes.txt +++ b/.besouro/20160930163040936/randomHeuristicEpisodes.txt @@ -2,3 +2,4 @@ 1475242306105 regression 2 13 false 1475242790531 regression 1 1 true 1475242802843 regression 1 1 false +1475242831930 regression 1 1 true diff --git a/.besouro/20160930163040936/zorroEpisodes.txt b/.besouro/20160930163040936/zorroEpisodes.txt index 6a3585a..a0d1558 100644 --- a/.besouro/20160930163040936/zorroEpisodes.txt +++ b/.besouro/20160930163040936/zorroEpisodes.txt @@ -2,3 +2,4 @@ 1475242306105 regression 2 24 false 1475242790531 regression 1 484 false 1475242802843 regression 1 12 false +1475242831930 regression 1 29 false diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 5b9dc54..d67f57f 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -9,9 +9,9 @@ public void test() { //fail("Not yet implemented"); RomanNumerals obj = new RomanNumerals(); - int num = obj.convertToInteger("iv"); + int num = obj.convertToInteger("x"); - assertEquals("", 4, num); + assertEquals("", 0, num); From cdd6c47b24b2b79725361791580798e81c39e572 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 30 Sep 2016 16:40:54 +0300 Subject: [PATCH 08/18] besouro automatic message --- .besouro/20160930163040936/actions.txt | 3 +++ .besouro/20160930163040936/besouroEpisodes.txt | 1 + .besouro/20160930163040936/randomHeuristicEpisodes.txt | 1 + .besouro/20160930163040936/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 2 +- 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.besouro/20160930163040936/actions.txt b/.besouro/20160930163040936/actions.txt index 146aaaf..37367c7 100644 --- a/.besouro/20160930163040936/actions.txt +++ b/.besouro/20160930163040936/actions.txt @@ -20,3 +20,6 @@ EditAction 1475242830503 TestRomanNumerals.java 283 1 3 1 UnitTestCaseAction 1475242831929 TestRomanNumerals.java OK UnitTestSessionAction 1475242831930 TestRomanNumerals.java OK EditAction 1475242847443 TestRomanNumerals.java 282 1 3 1 +UnitTestCaseAction 1475242848954 TestRomanNumerals.java OK +UnitTestSessionAction 1475242848955 TestRomanNumerals.java OK +EditAction 1475242854557 TestRomanNumerals.java 283 1 3 1 diff --git a/.besouro/20160930163040936/besouroEpisodes.txt b/.besouro/20160930163040936/besouroEpisodes.txt index 9157073..22a93d1 100644 --- a/.besouro/20160930163040936/besouroEpisodes.txt +++ b/.besouro/20160930163040936/besouroEpisodes.txt @@ -3,3 +3,4 @@ 1475242790531 regression 1 1 true 1475242802843 regression 1 1 true 1475242831930 regression 1 1 true +1475242848955 regression 1 1 true diff --git a/.besouro/20160930163040936/randomHeuristicEpisodes.txt b/.besouro/20160930163040936/randomHeuristicEpisodes.txt index 71bc21c..e353839 100644 --- a/.besouro/20160930163040936/randomHeuristicEpisodes.txt +++ b/.besouro/20160930163040936/randomHeuristicEpisodes.txt @@ -3,3 +3,4 @@ 1475242790531 regression 1 1 true 1475242802843 regression 1 1 false 1475242831930 regression 1 1 true +1475242848955 regression 1 1 true diff --git a/.besouro/20160930163040936/zorroEpisodes.txt b/.besouro/20160930163040936/zorroEpisodes.txt index a0d1558..4735eda 100644 --- a/.besouro/20160930163040936/zorroEpisodes.txt +++ b/.besouro/20160930163040936/zorroEpisodes.txt @@ -3,3 +3,4 @@ 1475242790531 regression 1 484 false 1475242802843 regression 1 12 false 1475242831930 regression 1 29 false +1475242848955 regression 1 17 false diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index d67f57f..b0b7dc3 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -11,7 +11,7 @@ public void test() { RomanNumerals obj = new RomanNumerals(); int num = obj.convertToInteger("x"); - assertEquals("", 0, num); + assertEquals("", 10, num); From f1184aab3fac2bba0d5285f15dd2601169fba9ed Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 30 Sep 2016 16:47:36 +0300 Subject: [PATCH 09/18] besouro automatic message --- .besouro/20160930163040936/actions.txt | 4 ++++ tests/TestRomanNumerals.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.besouro/20160930163040936/actions.txt b/.besouro/20160930163040936/actions.txt index 37367c7..22a3d25 100644 --- a/.besouro/20160930163040936/actions.txt +++ b/.besouro/20160930163040936/actions.txt @@ -23,3 +23,7 @@ EditAction 1475242847443 TestRomanNumerals.java 282 1 3 1 UnitTestCaseAction 1475242848954 TestRomanNumerals.java OK UnitTestSessionAction 1475242848955 TestRomanNumerals.java OK EditAction 1475242854557 TestRomanNumerals.java 283 1 3 1 +UnitTestCaseAction 1475242855977 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475242855979 TestRomanNumerals.java FAIL +RefactoringAction 1475243138983 RomanNumerals.java ADD static int romanConvert(String) METHOD +EditAction 1475243255981 TestRomanNumerals.java 279 1 3 1 diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index b0b7dc3..3dd47b5 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -9,7 +9,7 @@ public void test() { //fail("Not yet implemented"); RomanNumerals obj = new RomanNumerals(); - int num = obj.convertToInteger("x"); + int num = obj.romanConvert("x"); assertEquals("", 10, num); From 26958483b7e3499bcb39ccab67e60d83063c59ed Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 30 Sep 2016 16:47:37 +0300 Subject: [PATCH 10/18] besouro automatic message --- .besouro/20160930163040936/actions.txt | 2 + src/RomanNumerals.java | 60 ++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) diff --git a/.besouro/20160930163040936/actions.txt b/.besouro/20160930163040936/actions.txt index 22a3d25..93b667b 100644 --- a/.besouro/20160930163040936/actions.txt +++ b/.besouro/20160930163040936/actions.txt @@ -27,3 +27,5 @@ UnitTestCaseAction 1475242855977 TestRomanNumerals.java FAIL UnitTestSessionAction 1475242855979 TestRomanNumerals.java FAIL RefactoringAction 1475243138983 RomanNumerals.java ADD static int romanConvert(String) METHOD EditAction 1475243255981 TestRomanNumerals.java 279 1 3 1 +CompilationAction 1475243257264 TestRomanNumerals.java +EditAction 1475243257327 RomanNumerals.java 1617 3 14 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 116acad..dd7d916 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -7,6 +7,7 @@ public RomanNumerals() { public int convertToInteger(String romanNum) { romanNum = romanNum.toUpperCase(); + romanNum = romanNum.substring(0); if (romanNum.equals("I")) { return 1; @@ -41,4 +42,63 @@ public int convertToInteger(String romanNum) { return 0; } + + public int romanConvert(String roman) { + + int decimal = 0; + + String romanNumeral = roman.toUpperCase(); + for (int x = 0; x < romanNumeral.length(); x++) { + char convertToDecimal = roman.charAt(x); + + switch (convertToDecimal) { + case 'M': + decimal += 1000; + break; + + case 'D': + decimal += 500; + break; + + case 'C': + decimal += 100; + break; + + case 'L': + decimal += 50; + break; + + case 'X': + decimal += 10; + break; + + case 'V': + decimal += 5; + break; + + case 'I': + decimal += 1; + break; + } + } + if (romanNumeral.contains("IV")) { + decimal -= 2; + } + if (romanNumeral.contains("IX")) { + decimal -= 2; + } + if (romanNumeral.contains("XL")) { + decimal -= 10; + } + if (romanNumeral.contains("XC")) { + decimal -= 10; + } + if (romanNumeral.contains("CD")) { + decimal -= 100; + } + if (romanNumeral.contains("CM")) { + decimal -= 100; + } + return decimal; + } } From 89030d82e1c2acd433166c2a075052ef27b60acc Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 30 Sep 2016 16:47:56 +0300 Subject: [PATCH 11/18] besouro automatic message --- .besouro/20160930163040936/actions.txt | 3 +++ tests/TestRomanNumerals.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20160930163040936/actions.txt b/.besouro/20160930163040936/actions.txt index 93b667b..236ef52 100644 --- a/.besouro/20160930163040936/actions.txt +++ b/.besouro/20160930163040936/actions.txt @@ -29,3 +29,6 @@ RefactoringAction 1475243138983 RomanNumerals.java ADD static int romanConvert(S EditAction 1475243255981 TestRomanNumerals.java 279 1 3 1 CompilationAction 1475243257264 TestRomanNumerals.java EditAction 1475243257327 RomanNumerals.java 1617 3 14 0 +UnitTestCaseAction 1475243258837 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475243258838 TestRomanNumerals.java FAIL +EditAction 1475243275960 TestRomanNumerals.java 279 1 3 1 diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 3dd47b5..bc5837f 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -9,7 +9,7 @@ public void test() { //fail("Not yet implemented"); RomanNumerals obj = new RomanNumerals(); - int num = obj.romanConvert("x"); + int num = obj.romanConvert("X"); assertEquals("", 10, num); From 4cb5ce5a0e0ab1c69364d2b93f94f4013c4b112a Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 30 Sep 2016 16:52:23 +0300 Subject: [PATCH 12/18] besouro automatic message --- .besouro/20160930163040936/actions.txt | 3 +++ .besouro/20160930163040936/besouroEpisodes.txt | 1 + .besouro/20160930163040936/randomHeuristicEpisodes.txt | 1 + .besouro/20160930163040936/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 4 ++-- 5 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.besouro/20160930163040936/actions.txt b/.besouro/20160930163040936/actions.txt index 236ef52..138a083 100644 --- a/.besouro/20160930163040936/actions.txt +++ b/.besouro/20160930163040936/actions.txt @@ -32,3 +32,6 @@ EditAction 1475243257327 RomanNumerals.java 1617 3 14 0 UnitTestCaseAction 1475243258837 TestRomanNumerals.java FAIL UnitTestSessionAction 1475243258838 TestRomanNumerals.java FAIL EditAction 1475243275960 TestRomanNumerals.java 279 1 3 1 +UnitTestCaseAction 1475243277522 TestRomanNumerals.java OK +UnitTestSessionAction 1475243277523 TestRomanNumerals.java OK +EditAction 1475243543117 TestRomanNumerals.java 278 1 3 1 diff --git a/.besouro/20160930163040936/besouroEpisodes.txt b/.besouro/20160930163040936/besouroEpisodes.txt index 22a93d1..a08ece1 100644 --- a/.besouro/20160930163040936/besouroEpisodes.txt +++ b/.besouro/20160930163040936/besouroEpisodes.txt @@ -4,3 +4,4 @@ 1475242802843 regression 1 1 true 1475242831930 regression 1 1 true 1475242848955 regression 1 1 true +1475243277523 production 3 422 false diff --git a/.besouro/20160930163040936/randomHeuristicEpisodes.txt b/.besouro/20160930163040936/randomHeuristicEpisodes.txt index e353839..026f4e0 100644 --- a/.besouro/20160930163040936/randomHeuristicEpisodes.txt +++ b/.besouro/20160930163040936/randomHeuristicEpisodes.txt @@ -4,3 +4,4 @@ 1475242802843 regression 1 1 false 1475242831930 regression 1 1 true 1475242848955 regression 1 1 true +1475243277523 production 3 422 true diff --git a/.besouro/20160930163040936/zorroEpisodes.txt b/.besouro/20160930163040936/zorroEpisodes.txt index 4735eda..a43794e 100644 --- a/.besouro/20160930163040936/zorroEpisodes.txt +++ b/.besouro/20160930163040936/zorroEpisodes.txt @@ -4,3 +4,4 @@ 1475242802843 regression 1 12 false 1475242831930 regression 1 29 false 1475242848955 regression 1 17 false +1475243277523 production 3 428 false diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index bc5837f..da07d32 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -9,9 +9,9 @@ public void test() { //fail("Not yet implemented"); RomanNumerals obj = new RomanNumerals(); - int num = obj.romanConvert("X"); + int num = obj.romanConvert("i"); - assertEquals("", 10, num); + assertEquals("", 1, num); From e2417bb341e0a02840f479d2c2705713b45415b1 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 30 Sep 2016 16:52:24 +0300 Subject: [PATCH 13/18] besouro automatic message --- .besouro/20160930163040936/actions.txt | 1 + src/RomanNumerals.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.besouro/20160930163040936/actions.txt b/.besouro/20160930163040936/actions.txt index 138a083..462fce4 100644 --- a/.besouro/20160930163040936/actions.txt +++ b/.besouro/20160930163040936/actions.txt @@ -35,3 +35,4 @@ EditAction 1475243275960 TestRomanNumerals.java 279 1 3 1 UnitTestCaseAction 1475243277522 TestRomanNumerals.java OK UnitTestSessionAction 1475243277523 TestRomanNumerals.java OK EditAction 1475243543117 TestRomanNumerals.java 278 1 3 1 +EditAction 1475243544409 RomanNumerals.java 1617 3 14 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index dd7d916..766443c 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -48,8 +48,8 @@ public int romanConvert(String roman) { int decimal = 0; String romanNumeral = roman.toUpperCase(); - for (int x = 0; x < romanNumeral.length(); x++) { - char convertToDecimal = roman.charAt(x); + for (int i = 0; i < romanNumeral.length(); i++) { + char convertToDecimal = roman.charAt(i); switch (convertToDecimal) { case 'M': From cdbc38992430e990b22aaf1d7a66319deacd24a3 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 30 Sep 2016 16:52:34 +0300 Subject: [PATCH 14/18] besouro automatic message --- .besouro/20160930163040936/actions.txt | 3 +++ tests/TestRomanNumerals.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20160930163040936/actions.txt b/.besouro/20160930163040936/actions.txt index 462fce4..2ededf6 100644 --- a/.besouro/20160930163040936/actions.txt +++ b/.besouro/20160930163040936/actions.txt @@ -36,3 +36,6 @@ UnitTestCaseAction 1475243277522 TestRomanNumerals.java OK UnitTestSessionAction 1475243277523 TestRomanNumerals.java OK EditAction 1475243543117 TestRomanNumerals.java 278 1 3 1 EditAction 1475243544409 RomanNumerals.java 1617 3 14 0 +UnitTestCaseAction 1475243545850 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475243545851 TestRomanNumerals.java FAIL +EditAction 1475243554185 TestRomanNumerals.java 278 1 3 1 diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index da07d32..e5a528d 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -9,7 +9,7 @@ public void test() { //fail("Not yet implemented"); RomanNumerals obj = new RomanNumerals(); - int num = obj.romanConvert("i"); + int num = obj.romanConvert("I"); assertEquals("", 1, num); From 844befa413ba8fa82bc62dafb6a9dffff998430c Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 30 Sep 2016 16:54:15 +0300 Subject: [PATCH 15/18] besouro automatic message --- .besouro/20160930163040936/actions.txt | 5 ++ .../20160930163040936/besouroEpisodes.txt | 1 + .../randomHeuristicEpisodes.txt | 1 + .besouro/20160930163040936/zorroEpisodes.txt | 1 + src/RomanNumerals.java | 58 ++++--------------- 5 files changed, 18 insertions(+), 48 deletions(-) diff --git a/.besouro/20160930163040936/actions.txt b/.besouro/20160930163040936/actions.txt index 2ededf6..27d10e6 100644 --- a/.besouro/20160930163040936/actions.txt +++ b/.besouro/20160930163040936/actions.txt @@ -39,3 +39,8 @@ EditAction 1475243544409 RomanNumerals.java 1617 3 14 0 UnitTestCaseAction 1475243545850 TestRomanNumerals.java FAIL UnitTestSessionAction 1475243545851 TestRomanNumerals.java FAIL EditAction 1475243554185 TestRomanNumerals.java 278 1 3 1 +UnitTestCaseAction 1475243555673 TestRomanNumerals.java OK +UnitTestSessionAction 1475243555675 TestRomanNumerals.java OK +RefactoringAction 1475243567170 RomanNumerals.java REMOVE convertToInteger(String) METHOD +RefactoringAction 1475243572183 RomanNumerals.java RENAME romanConvert(String)=>int convertToInteger(String) METHOD +EditAction 1475243655382 RomanNumerals.java 935 2 10 0 diff --git a/.besouro/20160930163040936/besouroEpisodes.txt b/.besouro/20160930163040936/besouroEpisodes.txt index a08ece1..83faab3 100644 --- a/.besouro/20160930163040936/besouroEpisodes.txt +++ b/.besouro/20160930163040936/besouroEpisodes.txt @@ -5,3 +5,4 @@ 1475242831930 regression 1 1 true 1475242848955 regression 1 1 true 1475243277523 production 3 422 false +1475243555675 regression 2 12 true diff --git a/.besouro/20160930163040936/randomHeuristicEpisodes.txt b/.besouro/20160930163040936/randomHeuristicEpisodes.txt index 026f4e0..dbc6a1f 100644 --- a/.besouro/20160930163040936/randomHeuristicEpisodes.txt +++ b/.besouro/20160930163040936/randomHeuristicEpisodes.txt @@ -5,3 +5,4 @@ 1475242831930 regression 1 1 true 1475242848955 regression 1 1 true 1475243277523 production 3 422 true +1475243555675 regression 2 12 true diff --git a/.besouro/20160930163040936/zorroEpisodes.txt b/.besouro/20160930163040936/zorroEpisodes.txt index a43794e..c40cf97 100644 --- a/.besouro/20160930163040936/zorroEpisodes.txt +++ b/.besouro/20160930163040936/zorroEpisodes.txt @@ -5,3 +5,4 @@ 1475242831930 regression 1 29 false 1475242848955 regression 1 17 false 1475243277523 production 3 428 false +1475243555675 regression 2 278 false diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 766443c..2b13210 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -4,51 +4,13 @@ public class RomanNumerals { public RomanNumerals() { } - public int convertToInteger(String romanNum) { - - romanNum = romanNum.toUpperCase(); - romanNum = romanNum.substring(0); - - if (romanNum.equals("I")) { - return 1; - - } else if (romanNum.equals("II")) { - - return 2; - } else if (romanNum == "III") { - - return 3; - } else if (romanNum.equals("IV")) { - - return 4; - } else if (romanNum.equals("V")) { - - return 5; - } else if (romanNum.equals("VI")) { - - return 6; - } else if (romanNum.equals("VII")) { - - return 7; - } else if (romanNum.equals("VIII")) { - - return 8; - } else if (romanNum.equals("IX")) { - - return 9; - } - - // To be Implemented - return 0; - - } - - public int romanConvert(String roman) { + public int convertToInteger(String roman) { int decimal = 0; - String romanNumeral = roman.toUpperCase(); - for (int i = 0; i < romanNumeral.length(); i++) { + roman = roman.toUpperCase(); + + for (int i = 0; i < roman.length(); i++) { char convertToDecimal = roman.charAt(i); switch (convertToDecimal) { @@ -81,22 +43,22 @@ public int romanConvert(String roman) { break; } } - if (romanNumeral.contains("IV")) { + if (roman.contains("IV")) { decimal -= 2; } - if (romanNumeral.contains("IX")) { + if (roman.contains("IX")) { decimal -= 2; } - if (romanNumeral.contains("XL")) { + if (roman.contains("XL")) { decimal -= 10; } - if (romanNumeral.contains("XC")) { + if (roman.contains("XC")) { decimal -= 10; } - if (romanNumeral.contains("CD")) { + if (roman.contains("CD")) { decimal -= 100; } - if (romanNumeral.contains("CM")) { + if (roman.contains("CM")) { decimal -= 100; } return decimal; From 8cdd667586543f91aa999d0d8f078a28d83dc35f Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 30 Sep 2016 16:55:05 +0300 Subject: [PATCH 16/18] besouro automatic message --- .besouro/20160930163040936/actions.txt | 5 +++++ .besouro/20160930163040936/besouroEpisodes.txt | 1 + .besouro/20160930163040936/randomHeuristicEpisodes.txt | 1 + .besouro/20160930163040936/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 4 ++-- 5 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.besouro/20160930163040936/actions.txt b/.besouro/20160930163040936/actions.txt index 27d10e6..6864936 100644 --- a/.besouro/20160930163040936/actions.txt +++ b/.besouro/20160930163040936/actions.txt @@ -44,3 +44,8 @@ UnitTestSessionAction 1475243555675 TestRomanNumerals.java OK RefactoringAction 1475243567170 RomanNumerals.java REMOVE convertToInteger(String) METHOD RefactoringAction 1475243572183 RomanNumerals.java RENAME romanConvert(String)=>int convertToInteger(String) METHOD EditAction 1475243655382 RomanNumerals.java 935 2 10 0 +CompilationAction 1475243656692 TestRomanNumerals.java +CompilationAction 1475243679108 TestRomanNumerals.java +UnitTestCaseAction 1475243682249 TestRomanNumerals.java OK +UnitTestSessionAction 1475243682250 TestRomanNumerals.java OK +EditAction 1475243704671 TestRomanNumerals.java 283 1 3 1 diff --git a/.besouro/20160930163040936/besouroEpisodes.txt b/.besouro/20160930163040936/besouroEpisodes.txt index 83faab3..a3c9225 100644 --- a/.besouro/20160930163040936/besouroEpisodes.txt +++ b/.besouro/20160930163040936/besouroEpisodes.txt @@ -6,3 +6,4 @@ 1475242848955 regression 1 1 true 1475243277523 production 3 422 false 1475243555675 regression 2 12 true +1475243682250 refactoring 2A 115 true diff --git a/.besouro/20160930163040936/randomHeuristicEpisodes.txt b/.besouro/20160930163040936/randomHeuristicEpisodes.txt index dbc6a1f..48726e3 100644 --- a/.besouro/20160930163040936/randomHeuristicEpisodes.txt +++ b/.besouro/20160930163040936/randomHeuristicEpisodes.txt @@ -6,3 +6,4 @@ 1475242848955 regression 1 1 true 1475243277523 production 3 422 true 1475243555675 regression 2 12 true +1475243682250 refactoring 2A 115 true diff --git a/.besouro/20160930163040936/zorroEpisodes.txt b/.besouro/20160930163040936/zorroEpisodes.txt index c40cf97..5ab2723 100644 --- a/.besouro/20160930163040936/zorroEpisodes.txt +++ b/.besouro/20160930163040936/zorroEpisodes.txt @@ -6,3 +6,4 @@ 1475242848955 regression 1 17 false 1475243277523 production 3 428 false 1475243555675 regression 2 278 false +1475243682250 refactoring 2A 126 false diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index e5a528d..a57e6a4 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -9,9 +9,9 @@ public void test() { //fail("Not yet implemented"); RomanNumerals obj = new RomanNumerals(); - int num = obj.romanConvert("I"); + int num = obj.convertToInteger("l"); - assertEquals("", 1, num); + assertEquals("", 50, num); From 5ea436031df84ecc31b26abd3e30fa38e5088175 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 30 Sep 2016 17:00:47 +0300 Subject: [PATCH 17/18] besouro automatic message --- .besouro/20160930163040936/actions.txt | 2 ++ .besouro/20160930163040936/besouroEpisodes.txt | 1 + .besouro/20160930163040936/randomHeuristicEpisodes.txt | 1 + .besouro/20160930163040936/zorroEpisodes.txt | 1 + 4 files changed, 5 insertions(+) diff --git a/.besouro/20160930163040936/actions.txt b/.besouro/20160930163040936/actions.txt index 6864936..690b973 100644 --- a/.besouro/20160930163040936/actions.txt +++ b/.besouro/20160930163040936/actions.txt @@ -49,3 +49,5 @@ CompilationAction 1475243679108 TestRomanNumerals.java UnitTestCaseAction 1475243682249 TestRomanNumerals.java OK UnitTestSessionAction 1475243682250 TestRomanNumerals.java OK EditAction 1475243704671 TestRomanNumerals.java 283 1 3 1 +UnitTestCaseAction 1475243706091 TestRomanNumerals.java OK +UnitTestSessionAction 1475243706091 TestRomanNumerals.java OK diff --git a/.besouro/20160930163040936/besouroEpisodes.txt b/.besouro/20160930163040936/besouroEpisodes.txt index a3c9225..0442dbe 100644 --- a/.besouro/20160930163040936/besouroEpisodes.txt +++ b/.besouro/20160930163040936/besouroEpisodes.txt @@ -7,3 +7,4 @@ 1475243277523 production 3 422 false 1475243555675 regression 2 12 true 1475243682250 refactoring 2A 115 true +1475243706091 regression 1 1 true diff --git a/.besouro/20160930163040936/randomHeuristicEpisodes.txt b/.besouro/20160930163040936/randomHeuristicEpisodes.txt index 48726e3..dbda34c 100644 --- a/.besouro/20160930163040936/randomHeuristicEpisodes.txt +++ b/.besouro/20160930163040936/randomHeuristicEpisodes.txt @@ -7,3 +7,4 @@ 1475243277523 production 3 422 true 1475243555675 regression 2 12 true 1475243682250 refactoring 2A 115 true +1475243706091 regression 1 1 true diff --git a/.besouro/20160930163040936/zorroEpisodes.txt b/.besouro/20160930163040936/zorroEpisodes.txt index 5ab2723..d580a2f 100644 --- a/.besouro/20160930163040936/zorroEpisodes.txt +++ b/.besouro/20160930163040936/zorroEpisodes.txt @@ -7,3 +7,4 @@ 1475243277523 production 3 428 false 1475243555675 regression 2 278 false 1475243682250 refactoring 2A 126 false +1475243706091 regression 1 23 false From 84c84496ee3f89904d19f30ea2604ccbece9d8d8 Mon Sep 17 00:00:00 2001 From: jrodrigu Date: Fri, 30 Sep 2016 17:05:43 +0300 Subject: [PATCH 18/18] Exercise Complete --- src/RomanNumerals.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 2b13210..f5409a3 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -11,7 +11,7 @@ public int convertToInteger(String roman) { roman = roman.toUpperCase(); for (int i = 0; i < roman.length(); i++) { - char convertToDecimal = roman.charAt(i); + int convertToDecimal = roman.charAt(i); switch (convertToDecimal) { case 'M':