From 3c044ba878536932a409aa607ff16b251dc07ad3 Mon Sep 17 00:00:00 2001 From: jmouruja Date: Wed, 28 Sep 2016 16:44:30 +0300 Subject: [PATCH 001/107] Initialized 8 tests for basic letters, started creating a array for larger roman numerals --- src/RomanNumerals.java | 41 ++++++++++++++++++- tests/TestRomanNumerals.java | 79 +++++++++++++++++++++++++++++++++++- 2 files changed, 116 insertions(+), 4 deletions(-) diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 20904f0..e7a1ce3 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -1,8 +1,45 @@ public class RomanNumerals { + + int convertedInteger = 0; + + + public int convertToInteger(String romanNum) { - // To be Implemented - return 0; + + String[] characters = new String[romanNum.length()]; + + for (int i = 0; i < romanNum.length(); i++) { + characters[i] = romanNum.substring(i, i+1); + } + convertTo(romanNum); + + return convertedInteger; + + } + + private void convertTo(String romanNum) { + + if (romanNum == "VII") + convertedInteger += 7; + + else if (romanNum == "VI") + convertedInteger += 6; + + else if (romanNum == "V") + convertedInteger += 5; + + if (romanNum == "IV") + convertedInteger += 4; + + else if (romanNum == "III") + convertedInteger += 3; + + else if (romanNum == "II") + convertedInteger += 2; + + else if (romanNum == "I") + convertedInteger += 1; } } diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 5d1de75..94f96ed 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -3,10 +3,85 @@ import org.junit.Test; public class TestRomanNumerals { + + RomanNumerals test = new RomanNumerals(); + @Test - public void test() { - fail("Not yet implemented"); + public void testAppCreated_NotNull() { + + assertNotNull(test); } + @Test + public void testRomanNumerals_One() { + + int integer = test.convertToInteger("I"); + assertEquals(1, integer); + + } + @Test + public void testRomanNumerals_Two() { + + int integer = test.convertToInteger("II"); + assertEquals(2, integer); + + } + @Test + public void testRomanNumerals_Three() { + + int integer = test.convertToInteger("III"); + assertEquals(3, integer); + + } + @Test + public void testRomanNumerals_Four() { + + int integer = test.convertToInteger("IV"); + assertEquals(4, integer); + + } + + @Test + public void testRomanNumberals_Five() { + + int integer = test.convertToInteger("V"); + assertEquals(5, integer); + + } + + @Test + public void testRomanNumberals_Six() { + + int integer = test.convertToInteger("VI"); + assertEquals(6, integer); + + } + @Test + public void testRomanNumberals_Seven() { + + int integer = test.convertToInteger("VII"); + assertEquals(7, integer); + + } + @Test + public void testRomanNumberals_Eleven() { + + int integer = test.convertToInteger("XI"); + assertEquals(11, integer); + + } + + + + + /* + private void assertIntegerEquals(String roman) { + //int integer = test.convertToInteger(roman); + + assertEquals(integer, roman); + + }*/ + + } From da8ec0e526dbb5bc155086a78e122b739d107e63 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 14:44:40 +0300 Subject: [PATCH 002/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 4 +++ .../20161007144331704/besouroEpisodes.txt | 0 .besouro/20161007144331704/disagreements.txt | 0 .../randomHeuristicEpisodes.txt | 0 .besouro/20161007144331704/userComments.txt | 0 .besouro/20161007144331704/zorroEpisodes.txt | 0 src/RomanNumerals.java | 36 +++++++++++++++---- 7 files changed, 34 insertions(+), 6 deletions(-) create mode 100644 .besouro/20161007144331704/actions.txt create mode 100644 .besouro/20161007144331704/besouroEpisodes.txt create mode 100644 .besouro/20161007144331704/disagreements.txt create mode 100644 .besouro/20161007144331704/randomHeuristicEpisodes.txt create mode 100644 .besouro/20161007144331704/userComments.txt create mode 100644 .besouro/20161007144331704/zorroEpisodes.txt diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt new file mode 100644 index 0000000..ca6899a --- /dev/null +++ b/.besouro/20161007144331704/actions.txt @@ -0,0 +1,4 @@ +FileOpenedAction 1475840611985 TestRomanNumerals.java 1397 9 17 9 +UnitTestCaseAction 1475840615036 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475840615039 TestRomanNumerals.java FAIL +EditAction 1475840680449 RomanNumerals.java 1202 1 2 0 diff --git a/.besouro/20161007144331704/besouroEpisodes.txt b/.besouro/20161007144331704/besouroEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20161007144331704/disagreements.txt b/.besouro/20161007144331704/disagreements.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20161007144331704/randomHeuristicEpisodes.txt b/.besouro/20161007144331704/randomHeuristicEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20161007144331704/userComments.txt b/.besouro/20161007144331704/userComments.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20161007144331704/zorroEpisodes.txt b/.besouro/20161007144331704/zorroEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index e7a1ce3..d2d433a 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -2,22 +2,46 @@ public class RomanNumerals { int convertedInteger = 0; - + int decimal = 0; + int lastNumeral = 0; public int convertToInteger(String romanNum) { String[] characters = new String[romanNum.length()]; - for (int i = 0; i < romanNum.length(); i++) { - characters[i] = romanNum.substring(i, i+1); + for (int i = romanNum.length() - 1; i >= 0; i--) { + char currentRomanNumeral = romanNum.charAt(i); + + switch (currentRomanNumeral){ + case 'I': + if (lastNumeral > decimal) { + + convertedInteger = 1 - decimal; + } + else { + convertedInteger = 1 + decimal; + } + + switch (currentRomanNumeral){ + case 'V': + if (lastNumeral > decimal) { + + convertedInteger = 1 - decimal; + } + else { + convertedInteger = 1 + decimal; + } + + } + + } - convertTo(romanNum); return convertedInteger; } - +/* private void convertTo(String romanNum) { if (romanNum == "VII") @@ -41,5 +65,5 @@ else if (romanNum == "II") else if (romanNum == "I") convertedInteger += 1; - } + }*/ } From ba7f7cc39b5ef9b2f0c85704aa9dc8e3f620f6f6 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 14:49:57 +0300 Subject: [PATCH 003/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 11 +++++++++++ src/RomanNumerals.java | 14 ++++++++------ 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index ca6899a..56aceb8 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -2,3 +2,14 @@ FileOpenedAction 1475840611985 TestRomanNumerals.java 1397 9 17 9 UnitTestCaseAction 1475840615036 TestRomanNumerals.java FAIL UnitTestSessionAction 1475840615039 TestRomanNumerals.java FAIL EditAction 1475840680449 RomanNumerals.java 1202 1 2 0 +CompilationAction 1475840681791 RomanNumerals.java +CompilationAction 1475840826265 RomanNumerals.java +CompilationAction 1475840826453 RomanNumerals.java +CompilationAction 1475840911556 RomanNumerals.java +CompilationAction 1475840911682 RomanNumerals.java +UnitTestCaseAction 1475840915296 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475840915297 TestRomanNumerals.java FAIL +CompilationAction 1475840981273 RomanNumerals.java +UnitTestCaseAction 1475840983330 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475840983331 TestRomanNumerals.java FAIL +EditAction 1475840997431 RomanNumerals.java 1247 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index d2d433a..95df1e6 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -22,21 +22,23 @@ public int convertToInteger(String romanNum) { else { convertedInteger = 1 + decimal; } + lastNumeral = 1; + break; + } switch (currentRomanNumeral){ case 'V': if (lastNumeral > decimal) { - convertedInteger = 1 - decimal; + convertedInteger = 1 - 5; } else { - convertedInteger = 1 + decimal; + convertedInteger = 1 + 5; + } + lastNumeral = 5; + break; } - } - - - } return convertedInteger; From 396bbf8758a9926c196e99bc85e8be25eeaeae34 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 14:51:38 +0300 Subject: [PATCH 004/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 5 +++++ src/RomanNumerals.java | 2 ++ 2 files changed, 7 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 56aceb8..96d7d5c 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -13,3 +13,8 @@ CompilationAction 1475840981273 RomanNumerals.java UnitTestCaseAction 1475840983330 TestRomanNumerals.java FAIL UnitTestSessionAction 1475840983331 TestRomanNumerals.java FAIL EditAction 1475840997431 RomanNumerals.java 1247 1 3 0 +UnitTestCaseAction 1475840999991 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475840999992 TestRomanNumerals.java FAIL +UnitTestCaseAction 1475841046990 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475841046991 TestRomanNumerals.java FAIL +EditAction 1475841098212 RomanNumerals.java 1281 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 95df1e6..5187a51 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -15,6 +15,7 @@ public int convertToInteger(String romanNum) { switch (currentRomanNumeral){ case 'I': + decimal = 1; if (lastNumeral > decimal) { convertedInteger = 1 - decimal; @@ -28,6 +29,7 @@ public int convertToInteger(String romanNum) { switch (currentRomanNumeral){ case 'V': + decimal = 5; if (lastNumeral > decimal) { convertedInteger = 1 - 5; From 1f1f7693eadd1fa4db25ab730f39ad49783d5510 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 14:57:51 +0300 Subject: [PATCH 005/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 52 ++++++++++++++++++++++++++ src/RomanNumerals.java | 6 ++- 2 files changed, 56 insertions(+), 2 deletions(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 96d7d5c..e9fa18a 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -18,3 +18,55 @@ UnitTestSessionAction 1475840999992 TestRomanNumerals.java FAIL UnitTestCaseAction 1475841046990 TestRomanNumerals.java FAIL UnitTestSessionAction 1475841046991 TestRomanNumerals.java FAIL EditAction 1475841098212 RomanNumerals.java 1281 1 3 0 +UnitTestCaseAction 1475841100316 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475841100317 TestRomanNumerals.java FAIL +UnitTestCaseAction 1475841182472 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475841182473 TestRomanNumerals.java FAIL +RefactoringAction 1475841225877 RomanNumerals.java RENAME lastNumeral=>int earl FIELD +RefactoringAction 1475841227895 RomanNumerals.java RENAME earl=>int earlierNumber FIELD +CompilationAction 1475841234486 RomanNumerals.java +CompilationAction 1475841314106 RomanNumerals.java +CompilationAction 1475841314261 RomanNumerals.java +CompilationAction 1475841314262 RomanNumerals.java +CompilationAction 1475841314264 RomanNumerals.java +RefactoringAction 1475841331336 RomanNumerals.java ADD void alreadyExists() METHOD +CompilationAction 1475841331341 RomanNumerals.java +CompilationAction 1475841331619 RomanNumerals.java +CompilationAction 1475841331620 RomanNumerals.java +CompilationAction 1475841331621 RomanNumerals.java +CompilationAction 1475841384604 RomanNumerals.java +CompilationAction 1475841384809 RomanNumerals.java +CompilationAction 1475841384810 RomanNumerals.java +CompilationAction 1475841384811 RomanNumerals.java +RefactoringAction 1475841385656 RomanNumerals.java REMOVE alreadyExists() METHOD +RefactoringAction 1475841398240 RomanNumeralsData.java ADD RomanNumeralsData.java CLASS +CompilationAction 1475841398243 RomanNumerals.java +CompilationAction 1475841398244 RomanNumerals.java +CompilationAction 1475841398245 RomanNumerals.java +CompilationAction 1475841398466 RomanNumerals.java +CompilationAction 1475841398468 RomanNumerals.java +CompilationAction 1475841398469 RomanNumerals.java +RefactoringAction 1475841404054 RomanNumeralsData.java REMOVE RomanNumeralsData.java CLASS +CompilationAction 1475841404057 RomanNumerals.java +CompilationAction 1475841404058 RomanNumerals.java +CompilationAction 1475841404058 RomanNumerals.java +CompilationAction 1475841404277 RomanNumerals.java +CompilationAction 1475841404279 RomanNumerals.java +CompilationAction 1475841404280 RomanNumerals.java +RefactoringAction 1475841405198 RomanNumerals.java RENAME data=>int convertedInteger FIELD +CompilationAction 1475841427223 RomanNumerals.java +CompilationAction 1475841427225 RomanNumerals.java +CompilationAction 1475841427226 RomanNumerals.java +CompilationAction 1475841427360 RomanNumerals.java +UnitTestCaseAction 1475841431266 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475841431267 TestRomanNumerals.java FAIL +CompilationAction 1475841440663 RomanNumerals.java +CompilationAction 1475841440834 RomanNumerals.java +UnitTestCaseAction 1475841444489 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475841444491 TestRomanNumerals.java FAIL +CompilationAction 1475841450072 RomanNumerals.java +UnitTestCaseAction 1475841451540 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475841451541 TestRomanNumerals.java FAIL +UnitTestCaseAction 1475841457367 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475841457368 TestRomanNumerals.java FAIL +EditAction 1475841470567 RomanNumerals.java 1287 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 5187a51..04290fb 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -15,7 +15,7 @@ public int convertToInteger(String romanNum) { switch (currentRomanNumeral){ case 'I': - decimal = 1; + if (lastNumeral > decimal) { convertedInteger = 1 - decimal; @@ -23,13 +23,14 @@ public int convertToInteger(String romanNum) { else { convertedInteger = 1 + decimal; } + decimal = 1; lastNumeral = 1; break; } switch (currentRomanNumeral){ case 'V': - decimal = 5; + if (lastNumeral > decimal) { convertedInteger = 1 - 5; @@ -37,6 +38,7 @@ public int convertToInteger(String romanNum) { else { convertedInteger = 1 + 5; } + decimal = 5; lastNumeral = 5; break; } From e58536b6b71304ea2bf37b85992c41b2876da514 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:00:39 +0300 Subject: [PATCH 006/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index e9fa18a..7415bff 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -70,3 +70,6 @@ UnitTestSessionAction 1475841451541 TestRomanNumerals.java FAIL UnitTestCaseAction 1475841457367 TestRomanNumerals.java FAIL UnitTestSessionAction 1475841457368 TestRomanNumerals.java FAIL EditAction 1475841470567 RomanNumerals.java 1287 1 3 0 +UnitTestCaseAction 1475841472671 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475841472672 TestRomanNumerals.java FAIL +EditAction 1475841639281 RomanNumerals.java 1275 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 04290fb..bb21770 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -16,7 +16,7 @@ public int convertToInteger(String romanNum) { switch (currentRomanNumeral){ case 'I': - if (lastNumeral > decimal) { + if (lastNumeral > 1) { convertedInteger = 1 - decimal; } @@ -31,7 +31,7 @@ public int convertToInteger(String romanNum) { switch (currentRomanNumeral){ case 'V': - if (lastNumeral > decimal) { + if (lastNumeral > 5) { convertedInteger = 1 - 5; } From 0f6fb3f09d7ce766f88bd5e08fbf22fc1c49556f Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:01:49 +0300 Subject: [PATCH 007/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 1 + src/RomanNumerals.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 7415bff..aee42a0 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -73,3 +73,4 @@ EditAction 1475841470567 RomanNumerals.java 1287 1 3 0 UnitTestCaseAction 1475841472671 TestRomanNumerals.java FAIL UnitTestSessionAction 1475841472672 TestRomanNumerals.java FAIL EditAction 1475841639281 RomanNumerals.java 1275 1 3 0 +EditAction 1475841708876 RomanNumerals.java 1281 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index bb21770..ce6316e 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -18,7 +18,7 @@ public int convertToInteger(String romanNum) { if (lastNumeral > 1) { - convertedInteger = 1 - decimal; + convertedInteger = decimal - 1; } else { convertedInteger = 1 + decimal; @@ -33,7 +33,7 @@ public int convertToInteger(String romanNum) { if (lastNumeral > 5) { - convertedInteger = 1 - 5; + convertedInteger = decimal - 5; } else { convertedInteger = 1 + 5; From b86719e4a489d6d2106e2a4b9de2697ecc84c67d Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:01:58 +0300 Subject: [PATCH 008/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 1 + src/RomanNumerals.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index aee42a0..67794b7 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -74,3 +74,4 @@ UnitTestCaseAction 1475841472671 TestRomanNumerals.java FAIL UnitTestSessionAction 1475841472672 TestRomanNumerals.java FAIL EditAction 1475841639281 RomanNumerals.java 1275 1 3 0 EditAction 1475841708876 RomanNumerals.java 1281 1 3 0 +EditAction 1475841718396 RomanNumerals.java 1287 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index ce6316e..28fe86e 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -21,7 +21,7 @@ public int convertToInteger(String romanNum) { convertedInteger = decimal - 1; } else { - convertedInteger = 1 + decimal; + convertedInteger = decimal + 1; } decimal = 1; lastNumeral = 1; @@ -36,7 +36,7 @@ public int convertToInteger(String romanNum) { convertedInteger = decimal - 5; } else { - convertedInteger = 1 + 5; + convertedInteger = decimal + 5; } decimal = 5; lastNumeral = 5; From 1c601d42379996f069e175367b772d0ae1a73c8d Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:03:06 +0300 Subject: [PATCH 009/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 1 + src/RomanNumerals.java | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 67794b7..5e5b57b 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -75,3 +75,4 @@ UnitTestSessionAction 1475841472672 TestRomanNumerals.java FAIL EditAction 1475841639281 RomanNumerals.java 1275 1 3 0 EditAction 1475841708876 RomanNumerals.java 1281 1 3 0 EditAction 1475841718396 RomanNumerals.java 1287 1 3 0 +EditAction 1475841785827 RomanNumerals.java 1303 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 28fe86e..2519c77 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -18,10 +18,10 @@ public int convertToInteger(String romanNum) { if (lastNumeral > 1) { - convertedInteger = decimal - 1; + convertedInteger = lastNumeral - 1; } else { - convertedInteger = decimal + 1; + convertedInteger = lastNumeral + 1; } decimal = 1; lastNumeral = 1; @@ -33,10 +33,10 @@ public int convertToInteger(String romanNum) { if (lastNumeral > 5) { - convertedInteger = decimal - 5; + convertedInteger = lastNumeral - 5; } else { - convertedInteger = decimal + 5; + convertedInteger = lastNumeral + 5; } decimal = 5; lastNumeral = 5; From fcc05561dedba39bc59ba272dddea1d108f809d7 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:03:13 +0300 Subject: [PATCH 010/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 1 + src/RomanNumerals.java | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 5e5b57b..afffc98 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -76,3 +76,4 @@ EditAction 1475841639281 RomanNumerals.java 1275 1 3 0 EditAction 1475841708876 RomanNumerals.java 1281 1 3 0 EditAction 1475841718396 RomanNumerals.java 1287 1 3 0 EditAction 1475841785827 RomanNumerals.java 1303 1 3 0 +EditAction 1475841792686 RomanNumerals.java 1269 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 2519c77..aae5f71 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -23,7 +23,6 @@ public int convertToInteger(String romanNum) { else { convertedInteger = lastNumeral + 1; } - decimal = 1; lastNumeral = 1; break; } @@ -38,7 +37,6 @@ public int convertToInteger(String romanNum) { else { convertedInteger = lastNumeral + 5; } - decimal = 5; lastNumeral = 5; break; } From d8710465dd991c4824cfbc00f220533eb2a168ed Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:05:48 +0300 Subject: [PATCH 011/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index afffc98..7265dc8 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -77,3 +77,6 @@ EditAction 1475841708876 RomanNumerals.java 1281 1 3 0 EditAction 1475841718396 RomanNumerals.java 1287 1 3 0 EditAction 1475841785827 RomanNumerals.java 1303 1 3 0 EditAction 1475841792686 RomanNumerals.java 1269 1 3 0 +UnitTestCaseAction 1475841797410 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475841797411 TestRomanNumerals.java FAIL +EditAction 1475841947815 RomanNumerals.java 1349 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index aae5f71..1d4e2f2 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -20,9 +20,13 @@ public int convertToInteger(String romanNum) { convertedInteger = lastNumeral - 1; } - else { + if (lastNumeral < 1) { + convertedInteger = lastNumeral + 1; } + else { + convertedInteger = lastNumeral + 2; + } lastNumeral = 1; break; } From 12297430bfb71cd4409651658b944aaa23780079 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:09:42 +0300 Subject: [PATCH 012/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 7 +++++++ src/RomanNumerals.java | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 7265dc8..1b98233 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -80,3 +80,10 @@ EditAction 1475841792686 RomanNumerals.java 1269 1 3 0 UnitTestCaseAction 1475841797410 TestRomanNumerals.java FAIL UnitTestSessionAction 1475841797411 TestRomanNumerals.java FAIL EditAction 1475841947815 RomanNumerals.java 1349 1 3 0 +UnitTestCaseAction 1475841968812 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475841968814 TestRomanNumerals.java FAIL +UnitTestCaseAction 1475841994998 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475841994999 TestRomanNumerals.java FAIL +UnitTestCaseAction 1475842137448 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475842137449 TestRomanNumerals.java FAIL +EditAction 1475842181844 RomanNumerals.java 1350 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 1d4e2f2..5826aef 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -27,7 +27,7 @@ public int convertToInteger(String romanNum) { else { convertedInteger = lastNumeral + 2; } - lastNumeral = 1; + lastNumeral += 1; break; } From a54a0b26cffb0a1de2254ae8d4aa59c6e87076f1 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:09:56 +0300 Subject: [PATCH 013/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 1b98233..313ad83 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -87,3 +87,6 @@ UnitTestSessionAction 1475841994999 TestRomanNumerals.java FAIL UnitTestCaseAction 1475842137448 TestRomanNumerals.java FAIL UnitTestSessionAction 1475842137449 TestRomanNumerals.java FAIL EditAction 1475842181844 RomanNumerals.java 1350 1 3 0 +UnitTestCaseAction 1475842186779 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475842186780 TestRomanNumerals.java FAIL +EditAction 1475842195921 RomanNumerals.java 1349 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 5826aef..1d4e2f2 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -27,7 +27,7 @@ public int convertToInteger(String romanNum) { else { convertedInteger = lastNumeral + 2; } - lastNumeral += 1; + lastNumeral = 1; break; } From 6c7e87c065182c8509d238da6b979c161c83772d Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:10:16 +0300 Subject: [PATCH 014/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 1 + src/RomanNumerals.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 313ad83..cbcb849 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -90,3 +90,4 @@ EditAction 1475842181844 RomanNumerals.java 1350 1 3 0 UnitTestCaseAction 1475842186779 TestRomanNumerals.java FAIL UnitTestSessionAction 1475842186780 TestRomanNumerals.java FAIL EditAction 1475842195921 RomanNumerals.java 1349 1 3 0 +EditAction 1475842216021 RomanNumerals.java 1350 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 1d4e2f2..4da35d6 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -22,7 +22,7 @@ public int convertToInteger(String romanNum) { } if (lastNumeral < 1) { - convertedInteger = lastNumeral + 1; + convertedInteger += lastNumeral + 1; } else { convertedInteger = lastNumeral + 2; From edddd4ee17c540df3c5a9e6f36db10dab5bd5f5b Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:10:25 +0300 Subject: [PATCH 015/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index cbcb849..646177d 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -91,3 +91,6 @@ UnitTestCaseAction 1475842186779 TestRomanNumerals.java FAIL UnitTestSessionAction 1475842186780 TestRomanNumerals.java FAIL EditAction 1475842195921 RomanNumerals.java 1349 1 3 0 EditAction 1475842216021 RomanNumerals.java 1350 1 3 0 +UnitTestCaseAction 1475842217894 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475842217895 TestRomanNumerals.java FAIL +EditAction 1475842224702 RomanNumerals.java 1349 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 4da35d6..1d4e2f2 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -22,7 +22,7 @@ public int convertToInteger(String romanNum) { } if (lastNumeral < 1) { - convertedInteger += lastNumeral + 1; + convertedInteger = lastNumeral + 1; } else { convertedInteger = lastNumeral + 2; From 427e49219363c8101bb447406983d02da4abc09f Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:10:40 +0300 Subject: [PATCH 016/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 1 + src/RomanNumerals.java | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 646177d..4e73ca4 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -94,3 +94,4 @@ EditAction 1475842216021 RomanNumerals.java 1350 1 3 0 UnitTestCaseAction 1475842217894 TestRomanNumerals.java FAIL UnitTestSessionAction 1475842217895 TestRomanNumerals.java FAIL EditAction 1475842224702 RomanNumerals.java 1349 1 3 0 +EditAction 1475842240022 RomanNumerals.java 1358 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 1d4e2f2..a9adda8 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -16,7 +16,7 @@ public int convertToInteger(String romanNum) { switch (currentRomanNumeral){ case 'I': - if (lastNumeral > 1) { + /* if (lastNumeral > 1) { convertedInteger = lastNumeral - 1; } @@ -26,7 +26,8 @@ public int convertToInteger(String romanNum) { } else { convertedInteger = lastNumeral + 2; - } + }*/ + lastNumeral = 1; break; } From a1b9e805fdea22a30180f92a91dffdcc6445cb23 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:10:55 +0300 Subject: [PATCH 017/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 1 + 2 files changed, 4 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 4e73ca4..10c5d3b 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -95,3 +95,6 @@ UnitTestCaseAction 1475842217894 TestRomanNumerals.java FAIL UnitTestSessionAction 1475842217895 TestRomanNumerals.java FAIL EditAction 1475842224702 RomanNumerals.java 1349 1 3 0 EditAction 1475842240022 RomanNumerals.java 1358 1 3 0 +UnitTestCaseAction 1475842243141 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475842243142 TestRomanNumerals.java FAIL +EditAction 1475842254744 RomanNumerals.java 1384 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index a9adda8..c412147 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -29,6 +29,7 @@ public int convertToInteger(String romanNum) { }*/ lastNumeral = 1; + convertedInteger = 1; break; } From 353a3d9edd35ce37c38b5663fc38bcce2c9fcfdf Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:11:38 +0300 Subject: [PATCH 018/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 10c5d3b..f97020a 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -98,3 +98,6 @@ EditAction 1475842240022 RomanNumerals.java 1358 1 3 0 UnitTestCaseAction 1475842243141 TestRomanNumerals.java FAIL UnitTestSessionAction 1475842243142 TestRomanNumerals.java FAIL EditAction 1475842254744 RomanNumerals.java 1384 1 3 0 +UnitTestCaseAction 1475842256620 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475842256621 TestRomanNumerals.java FAIL +EditAction 1475842298362 RomanNumerals.java 1464 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index c412147..48764f5 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -27,6 +27,10 @@ public int convertToInteger(String romanNum) { else { convertedInteger = lastNumeral + 2; }*/ + if (lastNumeral < 0) { + + convertedInteger = lastNumeral + 1; + } lastNumeral = 1; convertedInteger = 1; From 4767cb948c49d44983d43269ebda81331eef046f Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:11:49 +0300 Subject: [PATCH 019/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index f97020a..ecaa002 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -101,3 +101,6 @@ EditAction 1475842254744 RomanNumerals.java 1384 1 3 0 UnitTestCaseAction 1475842256620 TestRomanNumerals.java FAIL UnitTestSessionAction 1475842256621 TestRomanNumerals.java FAIL EditAction 1475842298362 RomanNumerals.java 1464 1 3 0 +UnitTestCaseAction 1475842302091 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475842302092 TestRomanNumerals.java FAIL +EditAction 1475842309093 RomanNumerals.java 1438 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 48764f5..3bdfe4e 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -33,7 +33,6 @@ public int convertToInteger(String romanNum) { } lastNumeral = 1; - convertedInteger = 1; break; } From e71520b76620898e6405eb1ed796bfccdedd85d9 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:11:59 +0300 Subject: [PATCH 020/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index ecaa002..1a3fe9e 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -104,3 +104,6 @@ EditAction 1475842298362 RomanNumerals.java 1464 1 3 0 UnitTestCaseAction 1475842302091 TestRomanNumerals.java FAIL UnitTestSessionAction 1475842302092 TestRomanNumerals.java FAIL EditAction 1475842309093 RomanNumerals.java 1438 1 3 0 +UnitTestCaseAction 1475842310712 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475842310713 TestRomanNumerals.java FAIL +EditAction 1475842319481 RomanNumerals.java 1438 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 3bdfe4e..816ca05 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -27,7 +27,7 @@ public int convertToInteger(String romanNum) { else { convertedInteger = lastNumeral + 2; }*/ - if (lastNumeral < 0) { + if (lastNumeral < 1) { convertedInteger = lastNumeral + 1; } From 889528acf7faaa537c2fb31cc28b5691118e107a Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:12:23 +0300 Subject: [PATCH 021/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 1 + src/RomanNumerals.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 1a3fe9e..c0dbbb9 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -107,3 +107,4 @@ EditAction 1475842309093 RomanNumerals.java 1438 1 3 0 UnitTestCaseAction 1475842310712 TestRomanNumerals.java FAIL UnitTestSessionAction 1475842310713 TestRomanNumerals.java FAIL EditAction 1475842319481 RomanNumerals.java 1438 1 3 0 +EditAction 1475842342648 RomanNumerals.java 1439 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 816ca05..e5eb002 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -32,7 +32,7 @@ public int convertToInteger(String romanNum) { convertedInteger = lastNumeral + 1; } - lastNumeral = 1; + lastNumeral += 1; break; } From 3b457984eb7fe49070378c06c5e70d6c271cec63 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:14:08 +0300 Subject: [PATCH 022/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 5 +++++ src/RomanNumerals.java | 3 +++ 2 files changed, 8 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index c0dbbb9..3041b6d 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -108,3 +108,8 @@ UnitTestCaseAction 1475842310712 TestRomanNumerals.java FAIL UnitTestSessionAction 1475842310713 TestRomanNumerals.java FAIL EditAction 1475842319481 RomanNumerals.java 1438 1 3 0 EditAction 1475842342648 RomanNumerals.java 1439 1 3 0 +UnitTestCaseAction 1475842417456 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475842417458 TestRomanNumerals.java FAIL +UnitTestCaseAction 1475842429113 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475842429114 TestRomanNumerals.java FAIL +EditAction 1475842447658 RomanNumerals.java 1513 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index e5eb002..882e44c 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -31,6 +31,9 @@ public int convertToInteger(String romanNum) { convertedInteger = lastNumeral + 1; } + if (lastNumeral > 1) { + convertedInteger = lastNumeral - 1; + } lastNumeral += 1; break; From 680f23a221eb9a7f908365880c218ee141f585e3 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:14:18 +0300 Subject: [PATCH 023/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 1 + src/RomanNumerals.java | 1 + 2 files changed, 2 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 3041b6d..a98b52d 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -113,3 +113,4 @@ UnitTestSessionAction 1475842417458 TestRomanNumerals.java FAIL UnitTestCaseAction 1475842429113 TestRomanNumerals.java FAIL UnitTestSessionAction 1475842429114 TestRomanNumerals.java FAIL EditAction 1475842447658 RomanNumerals.java 1513 1 3 0 +EditAction 1475842458366 RomanNumerals.java 1538 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 882e44c..b46a623 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -31,6 +31,7 @@ public int convertToInteger(String romanNum) { convertedInteger = lastNumeral + 1; } + if (lastNumeral < 2) if (lastNumeral > 1) { convertedInteger = lastNumeral - 1; } From 6fd09dbf936586d474a440599d354153b1281cb7 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:14:23 +0300 Subject: [PATCH 024/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 1 + src/RomanNumerals.java | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index a98b52d..a40bb91 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -114,3 +114,4 @@ UnitTestCaseAction 1475842429113 TestRomanNumerals.java FAIL UnitTestSessionAction 1475842429114 TestRomanNumerals.java FAIL EditAction 1475842447658 RomanNumerals.java 1513 1 3 0 EditAction 1475842458366 RomanNumerals.java 1538 1 3 0 +EditAction 1475842462863 RomanNumerals.java 1513 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index b46a623..882e44c 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -31,7 +31,6 @@ public int convertToInteger(String romanNum) { convertedInteger = lastNumeral + 1; } - if (lastNumeral < 2) if (lastNumeral > 1) { convertedInteger = lastNumeral - 1; } From 001fbdd7ea61d2c28bc45d098011c9e4fa02ae29 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:14:54 +0300 Subject: [PATCH 025/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index a40bb91..5d6c6fe 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -115,3 +115,6 @@ UnitTestSessionAction 1475842429114 TestRomanNumerals.java FAIL EditAction 1475842447658 RomanNumerals.java 1513 1 3 0 EditAction 1475842458366 RomanNumerals.java 1538 1 3 0 EditAction 1475842462863 RomanNumerals.java 1513 1 3 0 +UnitTestCaseAction 1475842465016 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475842465018 TestRomanNumerals.java FAIL +EditAction 1475842493695 RomanNumerals.java 1514 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 882e44c..09a4bb9 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -29,7 +29,7 @@ public int convertToInteger(String romanNum) { }*/ if (lastNumeral < 1) { - convertedInteger = lastNumeral + 1; + convertedInteger += lastNumeral + 1; } if (lastNumeral > 1) { convertedInteger = lastNumeral - 1; From 2a140f84b73ea8fdf7c8dfb2a16747cda18693ba Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:14:58 +0300 Subject: [PATCH 026/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 1 + src/RomanNumerals.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 5d6c6fe..503edb3 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -118,3 +118,4 @@ EditAction 1475842462863 RomanNumerals.java 1513 1 3 0 UnitTestCaseAction 1475842465016 TestRomanNumerals.java FAIL UnitTestSessionAction 1475842465018 TestRomanNumerals.java FAIL EditAction 1475842493695 RomanNumerals.java 1514 1 3 0 +EditAction 1475842498473 RomanNumerals.java 1513 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 09a4bb9..a86faa2 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -35,7 +35,7 @@ public int convertToInteger(String romanNum) { convertedInteger = lastNumeral - 1; } - lastNumeral += 1; + lastNumeral = 1; break; } From 9ea8823e2699ad1053e81e2e2e3e307d89662394 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:15:09 +0300 Subject: [PATCH 027/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 503edb3..2741dc5 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -119,3 +119,6 @@ UnitTestCaseAction 1475842465016 TestRomanNumerals.java FAIL UnitTestSessionAction 1475842465018 TestRomanNumerals.java FAIL EditAction 1475842493695 RomanNumerals.java 1514 1 3 0 EditAction 1475842498473 RomanNumerals.java 1513 1 3 0 +UnitTestCaseAction 1475842500490 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475842500491 TestRomanNumerals.java FAIL +EditAction 1475842509485 RomanNumerals.java 1512 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index a86faa2..817b62c 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -29,7 +29,7 @@ public int convertToInteger(String romanNum) { }*/ if (lastNumeral < 1) { - convertedInteger += lastNumeral + 1; + convertedInteger = lastNumeral + 1; } if (lastNumeral > 1) { convertedInteger = lastNumeral - 1; From 052188154b901c1c93e53ab3d7a1d4868a9fca24 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:15:37 +0300 Subject: [PATCH 028/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 2741dc5..70489c8 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -122,3 +122,6 @@ EditAction 1475842498473 RomanNumerals.java 1513 1 3 0 UnitTestCaseAction 1475842500490 TestRomanNumerals.java FAIL UnitTestSessionAction 1475842500491 TestRomanNumerals.java FAIL EditAction 1475842509485 RomanNumerals.java 1512 1 3 0 +UnitTestCaseAction 1475842511593 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475842511594 TestRomanNumerals.java FAIL +EditAction 1475842536907 RomanNumerals.java 1570 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 817b62c..438925c 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -34,6 +34,9 @@ public int convertToInteger(String romanNum) { if (lastNumeral > 1) { convertedInteger = lastNumeral - 1; } + else { + convertedInteger = lastNumeral + 1; + } lastNumeral = 1; break; From af48ab6366d2fb8a8bb0e45649ec28247a51415e Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:16:31 +0300 Subject: [PATCH 029/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 5 +++++ src/RomanNumerals.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 70489c8..cee9f4c 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -125,3 +125,8 @@ EditAction 1475842509485 RomanNumerals.java 1512 1 3 0 UnitTestCaseAction 1475842511593 TestRomanNumerals.java FAIL UnitTestSessionAction 1475842511594 TestRomanNumerals.java FAIL EditAction 1475842536907 RomanNumerals.java 1570 1 3 0 +UnitTestCaseAction 1475842539392 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475842539393 TestRomanNumerals.java FAIL +UnitTestCaseAction 1475842580292 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475842580294 TestRomanNumerals.java FAIL +EditAction 1475842590988 RomanNumerals.java 1571 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 438925c..d9acb77 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -38,7 +38,7 @@ public int convertToInteger(String romanNum) { convertedInteger = lastNumeral + 1; } - lastNumeral = 1; + lastNumeral += 1; break; } From 4c8712eff3dc61f67f0bbb5dc697002de331872a Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:17:02 +0300 Subject: [PATCH 030/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 9 +++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index cee9f4c..1ce24c0 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -130,3 +130,6 @@ UnitTestSessionAction 1475842539393 TestRomanNumerals.java FAIL UnitTestCaseAction 1475842580292 TestRomanNumerals.java FAIL UnitTestSessionAction 1475842580294 TestRomanNumerals.java FAIL EditAction 1475842590988 RomanNumerals.java 1571 1 3 0 +UnitTestCaseAction 1475842593026 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475842593028 TestRomanNumerals.java FAIL +EditAction 1475842622242 RomanNumerals.java 1571 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index d9acb77..9c4e6c0 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -31,14 +31,15 @@ public int convertToInteger(String romanNum) { convertedInteger = lastNumeral + 1; } - if (lastNumeral > 1) { - convertedInteger = lastNumeral - 1; - } + else { convertedInteger = lastNumeral + 1; } + if (lastNumeral > 1) { + convertedInteger = lastNumeral - 1; + } - lastNumeral += 1; + lastNumeral = 1; break; } From 65515bdb50ab171925c0c29de03f223e7bab54a1 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:17:05 +0300 Subject: [PATCH 031/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 1 + src/RomanNumerals.java | 1 + 2 files changed, 2 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 1ce24c0..0d1cb97 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -133,3 +133,4 @@ EditAction 1475842590988 RomanNumerals.java 1571 1 3 0 UnitTestCaseAction 1475842593026 TestRomanNumerals.java FAIL UnitTestSessionAction 1475842593028 TestRomanNumerals.java FAIL EditAction 1475842622242 RomanNumerals.java 1571 1 3 0 +EditAction 1475842625147 RomanNumerals.java 1576 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 9c4e6c0..00846d6 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -35,6 +35,7 @@ public int convertToInteger(String romanNum) { else { convertedInteger = lastNumeral + 1; } + if (lastNumeral > 1) { convertedInteger = lastNumeral - 1; } From 9bdfe3577bf101b3415eb12c3101764e4d5f1c4c Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:19:08 +0300 Subject: [PATCH 032/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 1 + 2 files changed, 4 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 0d1cb97..dab22c3 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -134,3 +134,6 @@ UnitTestCaseAction 1475842593026 TestRomanNumerals.java FAIL UnitTestSessionAction 1475842593028 TestRomanNumerals.java FAIL EditAction 1475842622242 RomanNumerals.java 1571 1 3 0 EditAction 1475842625147 RomanNumerals.java 1576 1 3 0 +UnitTestCaseAction 1475842628103 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475842628104 TestRomanNumerals.java FAIL +EditAction 1475842748249 RomanNumerals.java 1581 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 00846d6..0a23056 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -31,6 +31,7 @@ public int convertToInteger(String romanNum) { convertedInteger = lastNumeral + 1; } + else { convertedInteger = lastNumeral + 1; From f87d183033554a5c236428a6cd208ba14161e3e4 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:20:37 +0300 Subject: [PATCH 033/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 5 +++++ src/RomanNumerals.java | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index dab22c3..fd2a6a8 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -137,3 +137,8 @@ EditAction 1475842625147 RomanNumerals.java 1576 1 3 0 UnitTestCaseAction 1475842628103 TestRomanNumerals.java FAIL UnitTestSessionAction 1475842628104 TestRomanNumerals.java FAIL EditAction 1475842748249 RomanNumerals.java 1581 1 3 0 +UnitTestCaseAction 1475842750405 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475842750406 TestRomanNumerals.java FAIL +RefactoringAction 1475842820438 RomanNumerals.java ADD int numOf FIELD +CompilationAction 1475842826456 RomanNumerals.java +EditAction 1475842836661 RomanNumerals.java 1613 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 0a23056..0567539 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -4,6 +4,7 @@ public class RomanNumerals { int convertedInteger = 0; int decimal = 0; int lastNumeral = 0; + int numOfInts = 0; public int convertToInteger(String romanNum) { @@ -40,7 +41,7 @@ public int convertToInteger(String romanNum) { if (lastNumeral > 1) { convertedInteger = lastNumeral - 1; } - + numOfInts++; lastNumeral = 1; break; } From b89df04763ea438b66a3faca73b7612ca4e0b123 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:21:15 +0300 Subject: [PATCH 034/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 1 + src/RomanNumerals.java | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index fd2a6a8..499b9fb 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -142,3 +142,4 @@ UnitTestSessionAction 1475842750406 TestRomanNumerals.java FAIL RefactoringAction 1475842820438 RomanNumerals.java ADD int numOf FIELD CompilationAction 1475842826456 RomanNumerals.java EditAction 1475842836661 RomanNumerals.java 1613 1 3 0 +EditAction 1475842875447 RomanNumerals.java 1680 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 0567539..1b8909a 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -32,6 +32,9 @@ public int convertToInteger(String romanNum) { convertedInteger = lastNumeral + 1; } + if (numOfInts > 1) + + convertedInteger += lastNumeral; else { From c9ec35db0beb9a4d6192f410b1c33183db6c156d Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:21:27 +0300 Subject: [PATCH 035/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 1 + src/RomanNumerals.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 499b9fb..a3bdf25 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -143,3 +143,4 @@ RefactoringAction 1475842820438 RomanNumerals.java ADD int numOf FIELD CompilationAction 1475842826456 RomanNumerals.java EditAction 1475842836661 RomanNumerals.java 1613 1 3 0 EditAction 1475842875447 RomanNumerals.java 1680 1 3 0 +EditAction 1475842886743 RomanNumerals.java 1681 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 1b8909a..9ec804b 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -33,9 +33,9 @@ public int convertToInteger(String romanNum) { convertedInteger = lastNumeral + 1; } if (numOfInts > 1) - + { convertedInteger += lastNumeral; - + } else { convertedInteger = lastNumeral + 1; From 3933d5e2f7934f126b402fd9fe209bea17de0bcc Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:22:55 +0300 Subject: [PATCH 036/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 21 ++++++--------------- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index a3bdf25..7138f7a 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -144,3 +144,6 @@ CompilationAction 1475842826456 RomanNumerals.java EditAction 1475842836661 RomanNumerals.java 1613 1 3 0 EditAction 1475842875447 RomanNumerals.java 1680 1 3 0 EditAction 1475842886743 RomanNumerals.java 1681 1 3 0 +UnitTestCaseAction 1475842888895 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475842888896 TestRomanNumerals.java FAIL +EditAction 1475842975341 RomanNumerals.java 1465 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 9ec804b..7549ade 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -17,25 +17,12 @@ public int convertToInteger(String romanNum) { switch (currentRomanNumeral){ case 'I': - /* if (lastNumeral > 1) { - - convertedInteger = lastNumeral - 1; - } - if (lastNumeral < 1) { - - convertedInteger = lastNumeral + 1; - } - else { - convertedInteger = lastNumeral + 2; - }*/ + if (lastNumeral < 1) { convertedInteger = lastNumeral + 1; } - if (numOfInts > 1) - { - convertedInteger += lastNumeral; - } + else { convertedInteger = lastNumeral + 1; @@ -44,6 +31,10 @@ public int convertToInteger(String romanNum) { if (lastNumeral > 1) { convertedInteger = lastNumeral - 1; } + if (numOfInts > 1) + { + convertedInteger += lastNumeral; + } numOfInts++; lastNumeral = 1; break; From 0829aababe6b2343dc011d11dcda672e0777566e Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:23:13 +0300 Subject: [PATCH 037/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 10 ++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 7138f7a..a13b9a6 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -147,3 +147,6 @@ EditAction 1475842886743 RomanNumerals.java 1681 1 3 0 UnitTestCaseAction 1475842888895 TestRomanNumerals.java FAIL UnitTestSessionAction 1475842888896 TestRomanNumerals.java FAIL EditAction 1475842975341 RomanNumerals.java 1465 1 3 0 +UnitTestCaseAction 1475842977361 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475842977362 TestRomanNumerals.java FAIL +EditAction 1475842993530 RomanNumerals.java 1472 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 7549ade..f1199b7 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -24,17 +24,19 @@ public int convertToInteger(String romanNum) { } - else { - convertedInteger = lastNumeral + 1; - } - + if (lastNumeral > 1) { convertedInteger = lastNumeral - 1; } + if (numOfInts > 1) { convertedInteger += lastNumeral; } + else { + convertedInteger += lastNumeral + 1; + } + numOfInts++; lastNumeral = 1; break; From cb2262bbba1b103a3c212b3970fcb5800186553c Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:23:23 +0300 Subject: [PATCH 038/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index a13b9a6..274ed07 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -150,3 +150,6 @@ EditAction 1475842975341 RomanNumerals.java 1465 1 3 0 UnitTestCaseAction 1475842977361 TestRomanNumerals.java FAIL UnitTestSessionAction 1475842977362 TestRomanNumerals.java FAIL EditAction 1475842993530 RomanNumerals.java 1472 1 3 0 +UnitTestCaseAction 1475842998168 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475842998169 TestRomanNumerals.java FAIL +EditAction 1475843002752 RomanNumerals.java 1471 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index f1199b7..97bce6d 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -34,7 +34,7 @@ public int convertToInteger(String romanNum) { convertedInteger += lastNumeral; } else { - convertedInteger += lastNumeral + 1; + convertedInteger = lastNumeral + 1; } numOfInts++; From 0e07b2770471bcc43bd917f0767bb029263ee8d3 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:26:55 +0300 Subject: [PATCH 039/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 2 ++ 2 files changed, 5 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 274ed07..89995e2 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -153,3 +153,6 @@ EditAction 1475842993530 RomanNumerals.java 1472 1 3 0 UnitTestCaseAction 1475842998168 TestRomanNumerals.java FAIL UnitTestSessionAction 1475842998169 TestRomanNumerals.java FAIL EditAction 1475843002752 RomanNumerals.java 1471 1 3 0 +UnitTestCaseAction 1475843008115 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475843008116 TestRomanNumerals.java FAIL +EditAction 1475843215032 RomanNumerals.java 1481 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 97bce6d..9601998 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -52,6 +52,8 @@ public int convertToInteger(String romanNum) { else { convertedInteger = lastNumeral + 5; } + + lastNumeral = 5; break; } From 16f46b66ac760cc689c0aa2fc47e292e06a9fb39 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:27:45 +0300 Subject: [PATCH 040/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 89995e2..37e65b7 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -156,3 +156,6 @@ EditAction 1475843002752 RomanNumerals.java 1471 1 3 0 UnitTestCaseAction 1475843008115 TestRomanNumerals.java FAIL UnitTestSessionAction 1475843008116 TestRomanNumerals.java FAIL EditAction 1475843215032 RomanNumerals.java 1481 1 3 0 +UnitTestCaseAction 1475843217627 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475843217628 TestRomanNumerals.java FAIL +EditAction 1475843264663 RomanNumerals.java 1476 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 9601998..b1c7406 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -53,7 +53,6 @@ public int convertToInteger(String romanNum) { convertedInteger = lastNumeral + 5; } - lastNumeral = 5; break; } From c999607f7e2b04d17f7e48d5ad8ec1f7b5fc6edf Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:29:50 +0300 Subject: [PATCH 041/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 9 +++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 37e65b7..b4e9b89 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -159,3 +159,6 @@ EditAction 1475843215032 RomanNumerals.java 1481 1 3 0 UnitTestCaseAction 1475843217627 TestRomanNumerals.java FAIL UnitTestSessionAction 1475843217628 TestRomanNumerals.java FAIL EditAction 1475843264663 RomanNumerals.java 1476 1 3 0 +RefactoringAction 1475843292314 RomanNumerals.java RENAME lastNumeral=>int lastI FIELD +RefactoringAction 1475843299826 RomanNumerals.java RENAME lastI=>int lastNumeral FIELD +EditAction 1475843390265 RomanNumerals.java 1468 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index b1c7406..65a7a64 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -4,6 +4,7 @@ public class RomanNumerals { int convertedInteger = 0; int decimal = 0; int lastNumeral = 0; + int lastV = 0; int numOfInts = 0; @@ -45,15 +46,15 @@ public int convertToInteger(String romanNum) { switch (currentRomanNumeral){ case 'V': - if (lastNumeral > 5) { + if (lastV > 5) { - convertedInteger = lastNumeral - 5; + convertedInteger = lastV - 5; } else { - convertedInteger = lastNumeral + 5; + convertedInteger = lastV + 5; } - lastNumeral = 5; + lastV = 5; break; } } From 9609c0c93ac11d3d4bbcfe0cd49d0b3e8df3213c Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:30:53 +0300 Subject: [PATCH 042/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index b4e9b89..49e0a2b 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -162,3 +162,6 @@ EditAction 1475843264663 RomanNumerals.java 1476 1 3 0 RefactoringAction 1475843292314 RomanNumerals.java RENAME lastNumeral=>int lastI FIELD RefactoringAction 1475843299826 RomanNumerals.java RENAME lastI=>int lastNumeral FIELD EditAction 1475843390265 RomanNumerals.java 1468 1 3 0 +UnitTestCaseAction 1475843393014 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475843393015 TestRomanNumerals.java FAIL +EditAction 1475843453498 RomanNumerals.java 1497 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 65a7a64..dc2f5e0 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -46,15 +46,15 @@ public int convertToInteger(String romanNum) { switch (currentRomanNumeral){ case 'V': - if (lastV > 5) { + if (convertedInteger > 5) { - convertedInteger = lastV - 5; + convertedInteger = lastNumeral - 5; } else { - convertedInteger = lastV + 5; + convertedInteger = lastNumeral + 5; } - lastV = 5; + lastNumeral = 5; break; } } From f5fd7498744a4ae47e13cf8c499ba0bef20cb796 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:31:01 +0300 Subject: [PATCH 043/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 1 + src/RomanNumerals.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 49e0a2b..ed4c585 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -165,3 +165,4 @@ EditAction 1475843390265 RomanNumerals.java 1468 1 3 0 UnitTestCaseAction 1475843393014 TestRomanNumerals.java FAIL UnitTestSessionAction 1475843393015 TestRomanNumerals.java FAIL EditAction 1475843453498 RomanNumerals.java 1497 1 3 0 +EditAction 1475843461194 RomanNumerals.java 1502 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index dc2f5e0..53e4a6f 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -48,7 +48,7 @@ public int convertToInteger(String romanNum) { if (convertedInteger > 5) { - convertedInteger = lastNumeral - 5; + convertedInteger = convertedInteger - 5; } else { convertedInteger = lastNumeral + 5; From f4cc1e88ea44ea23e0b8ae986c3eba719380c972 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:31:14 +0300 Subject: [PATCH 044/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 1 + src/RomanNumerals.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index ed4c585..7a9d08b 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -166,3 +166,4 @@ UnitTestCaseAction 1475843393014 TestRomanNumerals.java FAIL UnitTestSessionAction 1475843393015 TestRomanNumerals.java FAIL EditAction 1475843453498 RomanNumerals.java 1497 1 3 0 EditAction 1475843461194 RomanNumerals.java 1502 1 3 0 +EditAction 1475843474562 RomanNumerals.java 1507 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 53e4a6f..704b632 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -51,7 +51,7 @@ public int convertToInteger(String romanNum) { convertedInteger = convertedInteger - 5; } else { - convertedInteger = lastNumeral + 5; + convertedInteger = convertedInteger + 5; } lastNumeral = 5; From 78e544592f050cbc1b3b9d9a6b4d14284e99d94b Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:31:55 +0300 Subject: [PATCH 045/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 7a9d08b..4efae9d 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -167,3 +167,6 @@ UnitTestSessionAction 1475843393015 TestRomanNumerals.java FAIL EditAction 1475843453498 RomanNumerals.java 1497 1 3 0 EditAction 1475843461194 RomanNumerals.java 1502 1 3 0 EditAction 1475843474562 RomanNumerals.java 1507 1 3 0 +UnitTestCaseAction 1475843476652 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475843476653 TestRomanNumerals.java FAIL +EditAction 1475843514857 RomanNumerals.java 1517 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 704b632..30a33c8 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -19,7 +19,7 @@ public int convertToInteger(String romanNum) { case 'I': - if (lastNumeral < 1) { + if (convertedInteger < 1) { convertedInteger = lastNumeral + 1; } @@ -27,7 +27,7 @@ public int convertToInteger(String romanNum) { if (lastNumeral > 1) { - convertedInteger = lastNumeral - 1; + convertedInteger = convertedInteger - 1; } if (numOfInts > 1) From 9ccd71cbdd0daa07eab5b0b2c7992a9310576f0d Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:32:02 +0300 Subject: [PATCH 046/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 1 + src/RomanNumerals.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 4efae9d..60b1d52 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -170,3 +170,4 @@ EditAction 1475843474562 RomanNumerals.java 1507 1 3 0 UnitTestCaseAction 1475843476652 TestRomanNumerals.java FAIL UnitTestSessionAction 1475843476653 TestRomanNumerals.java FAIL EditAction 1475843514857 RomanNumerals.java 1517 1 3 0 +EditAction 1475843522396 RomanNumerals.java 1527 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 30a33c8..9105add 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -32,10 +32,10 @@ public int convertToInteger(String romanNum) { if (numOfInts > 1) { - convertedInteger += lastNumeral; + convertedInteger += convertedInteger; } else { - convertedInteger = lastNumeral + 1; + convertedInteger = convertedInteger + 1; } numOfInts++; From 8131dc3968afe7aaf454f176451e8084b12a1fd2 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:32:33 +0300 Subject: [PATCH 047/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 60b1d52..aca0c67 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -171,3 +171,6 @@ UnitTestCaseAction 1475843476652 TestRomanNumerals.java FAIL UnitTestSessionAction 1475843476653 TestRomanNumerals.java FAIL EditAction 1475843514857 RomanNumerals.java 1517 1 3 0 EditAction 1475843522396 RomanNumerals.java 1527 1 3 0 +UnitTestCaseAction 1475843528744 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475843528745 TestRomanNumerals.java FAIL +EditAction 1475843553177 RomanNumerals.java 1532 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 9105add..7a07ad4 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -26,7 +26,7 @@ public int convertToInteger(String romanNum) { - if (lastNumeral > 1) { + if (convertedInteger > 1) { convertedInteger = convertedInteger - 1; } From 35474e858001d72150f37d61146d9598cb509ea8 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:32:53 +0300 Subject: [PATCH 048/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index aca0c67..17c5e06 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -174,3 +174,6 @@ EditAction 1475843522396 RomanNumerals.java 1527 1 3 0 UnitTestCaseAction 1475843528744 TestRomanNumerals.java FAIL UnitTestSessionAction 1475843528745 TestRomanNumerals.java FAIL EditAction 1475843553177 RomanNumerals.java 1532 1 3 0 +UnitTestCaseAction 1475843555302 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475843555303 TestRomanNumerals.java FAIL +EditAction 1475843573342 RomanNumerals.java 1536 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 7a07ad4..0fcdbe4 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -30,10 +30,10 @@ public int convertToInteger(String romanNum) { convertedInteger = convertedInteger - 1; } - if (numOfInts > 1) + /* if (numOfInts > 1) { convertedInteger += convertedInteger; - } + }*/ else { convertedInteger = convertedInteger + 1; } From a69fccdaac3206ad85ab6df286c1ccbe004ca5bd Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:33:02 +0300 Subject: [PATCH 049/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 17c5e06..eba2994 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -177,3 +177,6 @@ EditAction 1475843553177 RomanNumerals.java 1532 1 3 0 UnitTestCaseAction 1475843555302 TestRomanNumerals.java FAIL UnitTestSessionAction 1475843555303 TestRomanNumerals.java FAIL EditAction 1475843573342 RomanNumerals.java 1536 1 3 0 +UnitTestCaseAction 1475843575282 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475843575282 TestRomanNumerals.java FAIL +EditAction 1475843581648 RomanNumerals.java 1532 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 0fcdbe4..7a07ad4 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -30,10 +30,10 @@ public int convertToInteger(String romanNum) { convertedInteger = convertedInteger - 1; } - /* if (numOfInts > 1) + if (numOfInts > 1) { convertedInteger += convertedInteger; - }*/ + } else { convertedInteger = convertedInteger + 1; } From 359a0d292432c69e8848b71854e594d419b78e5e Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:34:04 +0300 Subject: [PATCH 050/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 4 +++ src/RomanNumerals.java | 41 +++++++++++++++----------- 2 files changed, 27 insertions(+), 18 deletions(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index eba2994..efa8595 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -180,3 +180,7 @@ EditAction 1475843573342 RomanNumerals.java 1536 1 3 0 UnitTestCaseAction 1475843575282 TestRomanNumerals.java FAIL UnitTestSessionAction 1475843575282 TestRomanNumerals.java FAIL EditAction 1475843581648 RomanNumerals.java 1532 1 3 0 +UnitTestCaseAction 1475843613735 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475843613736 TestRomanNumerals.java FAIL +RefactoringAction 1475843643817 RomanNumerals.java ADD void process() METHOD +EditAction 1475843643821 RomanNumerals.java 1548 2 6 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 7a07ad4..515ae55 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -19,24 +19,7 @@ public int convertToInteger(String romanNum) { case 'I': - if (convertedInteger < 1) { - - convertedInteger = lastNumeral + 1; - } - - - - if (convertedInteger > 1) { - convertedInteger = convertedInteger - 1; - } - - if (numOfInts > 1) - { - convertedInteger += convertedInteger; - } - else { - convertedInteger = convertedInteger + 1; - } + process(); numOfInts++; lastNumeral = 1; @@ -87,4 +70,26 @@ else if (romanNum == "I") convertedInteger += 1; }*/ + + + private void process() { + if (convertedInteger < 1) { + + convertedInteger = lastNumeral + 1; + } + + + + if (convertedInteger > 1) { + convertedInteger = convertedInteger - 1; + } + + if (numOfInts > 1) + { + convertedInteger += convertedInteger; + } + else { + convertedInteger = convertedInteger + 1; + } + } } From a3a3cb74b73e87de661d566786ad0f79da23d1d5 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:34:45 +0300 Subject: [PATCH 051/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 1 + src/RomanNumerals.java | 41 +++++++++++--------------- 2 files changed, 19 insertions(+), 23 deletions(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index efa8595..faad39c 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -184,3 +184,4 @@ UnitTestCaseAction 1475843613735 TestRomanNumerals.java FAIL UnitTestSessionAction 1475843613736 TestRomanNumerals.java FAIL RefactoringAction 1475843643817 RomanNumerals.java ADD void process() METHOD EditAction 1475843643821 RomanNumerals.java 1548 2 6 0 +EditAction 1475843684989 RomanNumerals.java 1532 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 515ae55..7a07ad4 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -19,7 +19,24 @@ public int convertToInteger(String romanNum) { case 'I': - process(); + if (convertedInteger < 1) { + + convertedInteger = lastNumeral + 1; + } + + + + if (convertedInteger > 1) { + convertedInteger = convertedInteger - 1; + } + + if (numOfInts > 1) + { + convertedInteger += convertedInteger; + } + else { + convertedInteger = convertedInteger + 1; + } numOfInts++; lastNumeral = 1; @@ -70,26 +87,4 @@ else if (romanNum == "I") convertedInteger += 1; }*/ - - - private void process() { - if (convertedInteger < 1) { - - convertedInteger = lastNumeral + 1; - } - - - - if (convertedInteger > 1) { - convertedInteger = convertedInteger - 1; - } - - if (numOfInts > 1) - { - convertedInteger += convertedInteger; - } - else { - convertedInteger = convertedInteger + 1; - } - } } From 60c1103f2fb588e8a4de73fa6054668563117ace Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:38:31 +0300 Subject: [PATCH 052/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 6 ++++ src/RomanNumerals.java | 41 ++------------------------ 2 files changed, 9 insertions(+), 38 deletions(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index faad39c..d42c05a 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -185,3 +185,9 @@ UnitTestSessionAction 1475843613736 TestRomanNumerals.java FAIL RefactoringAction 1475843643817 RomanNumerals.java ADD void process() METHOD EditAction 1475843643821 RomanNumerals.java 1548 2 6 0 EditAction 1475843684989 RomanNumerals.java 1532 1 3 0 +RefactoringAction 1475843685682 RomanNumerals.java REMOVE process() METHOD +UnitTestCaseAction 1475843690752 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475843690753 TestRomanNumerals.java FAIL +UnitTestCaseAction 1475843779914 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475843779915 TestRomanNumerals.java FAIL +EditAction 1475843910586 RomanNumerals.java 948 1 0 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 7a07ad4..e0f6bb2 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -17,47 +17,12 @@ public int convertToInteger(String romanNum) { switch (currentRomanNumeral){ case 'I': - - - if (convertedInteger < 1) { - - convertedInteger = lastNumeral + 1; - } - - - - if (convertedInteger > 1) { - convertedInteger = convertedInteger - 1; - } - - if (numOfInts > 1) - { - convertedInteger += convertedInteger; - } - else { - convertedInteger = convertedInteger + 1; - } - - numOfInts++; - lastNumeral = 1; + convertedInteger += 1; break; - } - switch (currentRomanNumeral){ - case 'V': - - if (convertedInteger > 5) { - - convertedInteger = convertedInteger - 5; - } - else { - convertedInteger = convertedInteger + 5; - } + + - lastNumeral = 5; - break; - } - } return convertedInteger; From dbfc71ef436ba9d3fb4c42eeff49595b6e34d5e1 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:39:24 +0300 Subject: [PATCH 053/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 6 ++++++ src/RomanNumerals.java | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index d42c05a..790e160 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -191,3 +191,9 @@ UnitTestSessionAction 1475843690753 TestRomanNumerals.java FAIL UnitTestCaseAction 1475843779914 TestRomanNumerals.java FAIL UnitTestSessionAction 1475843779915 TestRomanNumerals.java FAIL EditAction 1475843910586 RomanNumerals.java 948 1 0 0 +CompilationAction 1475843911721 RomanNumerals.java +CompilationAction 1475843911723 RomanNumerals.java +CompilationAction 1475843935355 RomanNumerals.java +UnitTestCaseAction 1475843936586 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475843936587 TestRomanNumerals.java FAIL +EditAction 1475843963904 RomanNumerals.java 1002 1 0 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index e0f6bb2..c36f714 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -19,9 +19,13 @@ public int convertToInteger(String romanNum) { case 'I': convertedInteger += 1; break; - + case 'V' + convertedInteger += 5; + break; + } + } return convertedInteger; From b695174c3aa46e58e91626db81b1de03a069a461 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:39:34 +0300 Subject: [PATCH 054/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 4 ++++ src/RomanNumerals.java | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 790e160..8cff7ed 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -197,3 +197,7 @@ CompilationAction 1475843935355 RomanNumerals.java UnitTestCaseAction 1475843936586 TestRomanNumerals.java FAIL UnitTestSessionAction 1475843936587 TestRomanNumerals.java FAIL EditAction 1475843963904 RomanNumerals.java 1002 1 0 0 +CompilationAction 1475843964975 RomanNumerals.java +CompilationAction 1475843966519 RomanNumerals.java +CompilationAction 1475843966692 RomanNumerals.java +EditAction 1475843973557 RomanNumerals.java 1002 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index c36f714..6ec13d6 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -18,9 +18,9 @@ public int convertToInteger(String romanNum) { switch (currentRomanNumeral){ case 'I': convertedInteger += 1; - break; + break; - case 'V' + case 'V': convertedInteger += 5; break; From ca228ece5d29df953555b699734bc3685a51f36e Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:40:06 +0300 Subject: [PATCH 055/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 1 + 2 files changed, 4 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 8cff7ed..a7d28ef 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -201,3 +201,6 @@ CompilationAction 1475843964975 RomanNumerals.java CompilationAction 1475843966519 RomanNumerals.java CompilationAction 1475843966692 RomanNumerals.java EditAction 1475843973557 RomanNumerals.java 1002 1 3 0 +UnitTestCaseAction 1475843975613 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475843975614 TestRomanNumerals.java FAIL +EditAction 1475844005888 RomanNumerals.java 1033 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 6ec13d6..1a54a9b 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -26,6 +26,7 @@ public int convertToInteger(String romanNum) { } } + if (romanNum.contains("IV")) return convertedInteger; From ea7b844c3111a24e6f6042edd88b818ed13ac71b Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:40:17 +0300 Subject: [PATCH 056/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 2 ++ src/RomanNumerals.java | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index a7d28ef..eb67873 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -204,3 +204,5 @@ EditAction 1475843973557 RomanNumerals.java 1002 1 3 0 UnitTestCaseAction 1475843975613 TestRomanNumerals.java FAIL UnitTestSessionAction 1475843975614 TestRomanNumerals.java FAIL EditAction 1475844005888 RomanNumerals.java 1033 1 3 0 +CompilationAction 1475844006989 RomanNumerals.java +EditAction 1475844017237 RomanNumerals.java 1068 1 4 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 1a54a9b..903aa6c 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -26,7 +26,10 @@ public int convertToInteger(String romanNum) { } } - if (romanNum.contains("IV")) + if (romanNum.contains("IV")){ + + convertedInteger -= 2; + } return convertedInteger; From 8d6585a5d9f4a42c2d852ae596c633558b2de83b Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:40:38 +0300 Subject: [PATCH 057/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index eb67873..636ac54 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -206,3 +206,6 @@ UnitTestSessionAction 1475843975614 TestRomanNumerals.java FAIL EditAction 1475844005888 RomanNumerals.java 1033 1 3 0 CompilationAction 1475844006989 RomanNumerals.java EditAction 1475844017237 RomanNumerals.java 1068 1 4 0 +UnitTestCaseAction 1475844022876 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475844022877 TestRomanNumerals.java FAIL +EditAction 1475844038529 RomanNumerals.java 1123 1 4 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 903aa6c..4e9e1bb 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -23,6 +23,10 @@ public int convertToInteger(String romanNum) { case 'V': convertedInteger += 5; break; + + case 'X': + convertedInteger += 10; + break; } } From 9973a61e213edf8276362cfb54b3279d611470ba Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:40:59 +0300 Subject: [PATCH 058/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 5 +++++ .besouro/20161007144331704/besouroEpisodes.txt | 3 +++ .besouro/20161007144331704/randomHeuristicEpisodes.txt | 1 + .besouro/20161007144331704/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 7 +++++++ 5 files changed, 17 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 636ac54..79da64e 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -209,3 +209,8 @@ EditAction 1475844017237 RomanNumerals.java 1068 1 4 0 UnitTestCaseAction 1475844022876 TestRomanNumerals.java FAIL UnitTestSessionAction 1475844022877 TestRomanNumerals.java FAIL EditAction 1475844038529 RomanNumerals.java 1123 1 4 0 +UnitTestCaseAction 1475844040609 TestRomanNumerals.java OK +UnitTestSessionAction 1475844040610 TestRomanNumerals.java OK +RefactoringAction 1475844050510 TestRomanNumerals.java ADD void testRomanNumberals_Eleven()/2 METHOD +RefactoringAction 1475844056540 TestRomanNumerals.java RENAME testRomanNumberals_Eleven()/2=>void testRomanNumberals_Twelve() METHOD +EditAction 1475844058875 TestRomanNumerals.java 1529 10 19 10 diff --git a/.besouro/20161007144331704/besouroEpisodes.txt b/.besouro/20161007144331704/besouroEpisodes.txt index e69de29..2064418 100644 --- a/.besouro/20161007144331704/besouroEpisodes.txt +++ b/.besouro/20161007144331704/besouroEpisodes.txt @@ -0,0 +1,3 @@ +1475844040610 refactoring 2A 3428 true +1475844040611 production 1 3428 false +1475844040612 production 2 3428 false diff --git a/.besouro/20161007144331704/randomHeuristicEpisodes.txt b/.besouro/20161007144331704/randomHeuristicEpisodes.txt index e69de29..6ae8f6e 100644 --- a/.besouro/20161007144331704/randomHeuristicEpisodes.txt +++ b/.besouro/20161007144331704/randomHeuristicEpisodes.txt @@ -0,0 +1 @@ +1475844040610 refactoring 2A 3428 false diff --git a/.besouro/20161007144331704/zorroEpisodes.txt b/.besouro/20161007144331704/zorroEpisodes.txt index e69de29..6ae8f6e 100644 --- a/.besouro/20161007144331704/zorroEpisodes.txt +++ b/.besouro/20161007144331704/zorroEpisodes.txt @@ -0,0 +1 @@ +1475844040610 refactoring 2A 3428 false diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 94f96ed..d6b65cc 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -70,6 +70,13 @@ public void testRomanNumberals_Eleven() { assertEquals(11, integer); } + @Test + public void testRomanNumberals_Twelve() { + + int integer = test.convertToInteger("XII"); + assertEquals(11, integer); + + } From 12b808cf2ad3a2f79f53e80d5d67c8ac9947244d Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:41:03 +0300 Subject: [PATCH 059/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 1 + tests/TestRomanNumerals.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 79da64e..49de719 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -214,3 +214,4 @@ UnitTestSessionAction 1475844040610 TestRomanNumerals.java OK RefactoringAction 1475844050510 TestRomanNumerals.java ADD void testRomanNumberals_Eleven()/2 METHOD RefactoringAction 1475844056540 TestRomanNumerals.java RENAME testRomanNumberals_Eleven()/2=>void testRomanNumberals_Twelve() METHOD EditAction 1475844058875 TestRomanNumerals.java 1529 10 19 10 +EditAction 1475844063066 TestRomanNumerals.java 1529 10 19 10 diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index d6b65cc..fe5a875 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -74,7 +74,7 @@ public void testRomanNumberals_Eleven() { public void testRomanNumberals_Twelve() { int integer = test.convertToInteger("XII"); - assertEquals(11, integer); + assertEquals(12, integer); } From 14e79813dea95f5d237aae103a7a93bc76ecd5ab Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:41:14 +0300 Subject: [PATCH 060/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 2 ++ tests/TestRomanNumerals.java | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 49de719..dba9955 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -215,3 +215,5 @@ RefactoringAction 1475844050510 TestRomanNumerals.java ADD void testRomanNumbera RefactoringAction 1475844056540 TestRomanNumerals.java RENAME testRomanNumberals_Eleven()/2=>void testRomanNumberals_Twelve() METHOD EditAction 1475844058875 TestRomanNumerals.java 1529 10 19 10 EditAction 1475844063066 TestRomanNumerals.java 1529 10 19 10 +RefactoringAction 1475844067570 TestRomanNumerals.java ADD void testRomanNumberals_Twelve()/2 METHOD +EditAction 1475844073965 TestRomanNumerals.java 1663 11 21 11 diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index fe5a875..ca9841a 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -77,6 +77,13 @@ public void testRomanNumberals_Twelve() { assertEquals(12, integer); } + @Test + public void testRomanNumberals_Fourteen() { + + int integer = test.convertToInteger("XII"); + assertEquals(12, integer); + + } From b5d4d53f7ee3fdc28b11c7eb12f49a8601a81107 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:41:17 +0300 Subject: [PATCH 061/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 1 + tests/TestRomanNumerals.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index dba9955..3af8638 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -217,3 +217,4 @@ EditAction 1475844058875 TestRomanNumerals.java 1529 10 19 10 EditAction 1475844063066 TestRomanNumerals.java 1529 10 19 10 RefactoringAction 1475844067570 TestRomanNumerals.java ADD void testRomanNumberals_Twelve()/2 METHOD EditAction 1475844073965 TestRomanNumerals.java 1663 11 21 11 +EditAction 1475844077301 TestRomanNumerals.java 1663 11 21 11 diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index ca9841a..7159b2d 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -80,7 +80,7 @@ public void testRomanNumberals_Twelve() { @Test public void testRomanNumberals_Fourteen() { - int integer = test.convertToInteger("XII"); + int integer = test.convertToInteger("XIV"); assertEquals(12, integer); } From dcbb45b3489a3798181ebc0b7ecaee01cf8ecfa5 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:41:23 +0300 Subject: [PATCH 062/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 2 ++ tests/TestRomanNumerals.java | 8 +------- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 3af8638..31dfee1 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -218,3 +218,5 @@ EditAction 1475844063066 TestRomanNumerals.java 1529 10 19 10 RefactoringAction 1475844067570 TestRomanNumerals.java ADD void testRomanNumberals_Twelve()/2 METHOD EditAction 1475844073965 TestRomanNumerals.java 1663 11 21 11 EditAction 1475844077301 TestRomanNumerals.java 1663 11 21 11 +RefactoringAction 1475844082341 TestRomanNumerals.java REMOVE testRomanNumberals_Fourteen() METHOD +EditAction 1475844082714 TestRomanNumerals.java 1530 10 19 10 diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 7159b2d..7252ac7 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -77,13 +77,7 @@ public void testRomanNumberals_Twelve() { assertEquals(12, integer); } - @Test - public void testRomanNumberals_Fourteen() { - - int integer = test.convertToInteger("XIV"); - assertEquals(12, integer); - - } + From d01e21c605943778f1f50df2fdea924914a58dad Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:41:28 +0300 Subject: [PATCH 063/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 4 ++++ .besouro/20161007144331704/besouroEpisodes.txt | 4 ++++ .besouro/20161007144331704/randomHeuristicEpisodes.txt | 1 + .besouro/20161007144331704/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 8 +++++++- 5 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 31dfee1..a5cbf98 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -220,3 +220,7 @@ EditAction 1475844073965 TestRomanNumerals.java 1663 11 21 11 EditAction 1475844077301 TestRomanNumerals.java 1663 11 21 11 RefactoringAction 1475844082341 TestRomanNumerals.java REMOVE testRomanNumberals_Fourteen() METHOD EditAction 1475844082714 TestRomanNumerals.java 1530 10 19 10 +UnitTestCaseAction 1475844084855 TestRomanNumerals.java OK +UnitTestSessionAction 1475844084856 TestRomanNumerals.java OK +RefactoringAction 1475844087617 TestRomanNumerals.java ADD void testRomanNumberals_Fourteen() METHOD +EditAction 1475844088481 TestRomanNumerals.java 1663 11 21 11 diff --git a/.besouro/20161007144331704/besouroEpisodes.txt b/.besouro/20161007144331704/besouroEpisodes.txt index 2064418..9e4ab35 100644 --- a/.besouro/20161007144331704/besouroEpisodes.txt +++ b/.besouro/20161007144331704/besouroEpisodes.txt @@ -1,3 +1,7 @@ 1475844040610 refactoring 2A 3428 true 1475844040611 production 1 3428 false 1475844040612 production 2 3428 false +1475844084856 test-addition 1 34 true +1475844084857 test-addition 1 34 true +1475844084858 test-addition 1 34 true +1475844084859 test-addition 1 34 true diff --git a/.besouro/20161007144331704/randomHeuristicEpisodes.txt b/.besouro/20161007144331704/randomHeuristicEpisodes.txt index 6ae8f6e..cc1bdfa 100644 --- a/.besouro/20161007144331704/randomHeuristicEpisodes.txt +++ b/.besouro/20161007144331704/randomHeuristicEpisodes.txt @@ -1 +1,2 @@ 1475844040610 refactoring 2A 3428 false +1475844084856 test-addition 1 34 false diff --git a/.besouro/20161007144331704/zorroEpisodes.txt b/.besouro/20161007144331704/zorroEpisodes.txt index 6ae8f6e..a02b4a5 100644 --- a/.besouro/20161007144331704/zorroEpisodes.txt +++ b/.besouro/20161007144331704/zorroEpisodes.txt @@ -1 +1,2 @@ 1475844040610 refactoring 2A 3428 false +1475844084856 test-addition 1 44 false diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 7252ac7..7159b2d 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -77,7 +77,13 @@ public void testRomanNumberals_Twelve() { assertEquals(12, integer); } - + @Test + public void testRomanNumberals_Fourteen() { + + int integer = test.convertToInteger("XIV"); + assertEquals(12, integer); + + } From ae12b4d8b0fb36eeab3ea04bf120cd578c9292a6 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:41:41 +0300 Subject: [PATCH 064/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 5 +++++ tests/TestRomanNumerals.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index a5cbf98..65d4316 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -224,3 +224,8 @@ UnitTestCaseAction 1475844084855 TestRomanNumerals.java OK UnitTestSessionAction 1475844084856 TestRomanNumerals.java OK RefactoringAction 1475844087617 TestRomanNumerals.java ADD void testRomanNumberals_Fourteen() METHOD EditAction 1475844088481 TestRomanNumerals.java 1663 11 21 11 +UnitTestCaseAction 1475844090827 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475844090828 TestRomanNumerals.java FAIL +UnitTestCaseAction 1475844094925 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475844094926 TestRomanNumerals.java FAIL +EditAction 1475844101062 TestRomanNumerals.java 1663 11 21 11 diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 7159b2d..9e1d40c 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -81,7 +81,7 @@ public void testRomanNumberals_Twelve() { public void testRomanNumberals_Fourteen() { int integer = test.convertToInteger("XIV"); - assertEquals(12, integer); + assertEquals(14, integer); } From 3a2ebe6199b1f369b0137230d10fd3460cc941f2 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:42:55 +0300 Subject: [PATCH 065/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 5 +++++ .besouro/20161007144331704/besouroEpisodes.txt | 6 ++++++ .besouro/20161007144331704/randomHeuristicEpisodes.txt | 1 + .besouro/20161007144331704/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 7 +++++++ 5 files changed, 20 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 65d4316..a0e68ca 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -229,3 +229,8 @@ UnitTestSessionAction 1475844090828 TestRomanNumerals.java FAIL UnitTestCaseAction 1475844094925 TestRomanNumerals.java FAIL UnitTestSessionAction 1475844094926 TestRomanNumerals.java FAIL EditAction 1475844101062 TestRomanNumerals.java 1663 11 21 11 +UnitTestCaseAction 1475844103819 TestRomanNumerals.java OK +UnitTestSessionAction 1475844103820 TestRomanNumerals.java OK +RefactoringAction 1475844169179 TestRomanNumerals.java ADD void testRomanNumberals_Fourteen()/2 METHOD +RefactoringAction 1475844173193 TestRomanNumerals.java RENAME testRomanNumberals_Fourteen()/2=>void testRomanNumberals_Twenty() METHOD +EditAction 1475844175050 TestRomanNumerals.java 1794 12 23 12 diff --git a/.besouro/20161007144331704/besouroEpisodes.txt b/.besouro/20161007144331704/besouroEpisodes.txt index 9e4ab35..3159e3d 100644 --- a/.besouro/20161007144331704/besouroEpisodes.txt +++ b/.besouro/20161007144331704/besouroEpisodes.txt @@ -5,3 +5,9 @@ 1475844084857 test-addition 1 34 true 1475844084858 test-addition 1 34 true 1475844084859 test-addition 1 34 true +1475844103820 test-addition 1 16 true +1475844103821 test-addition 2 16 true +1475844103822 test-addition 2 16 true +1475844103823 test-addition 1 16 true +1475844103824 test-addition 2 16 true +1475844103825 test-addition 2 16 true diff --git a/.besouro/20161007144331704/randomHeuristicEpisodes.txt b/.besouro/20161007144331704/randomHeuristicEpisodes.txt index cc1bdfa..1444df5 100644 --- a/.besouro/20161007144331704/randomHeuristicEpisodes.txt +++ b/.besouro/20161007144331704/randomHeuristicEpisodes.txt @@ -1,2 +1,3 @@ 1475844040610 refactoring 2A 3428 false 1475844084856 test-addition 1 34 false +1475844103820 test-addition 1 16 false diff --git a/.besouro/20161007144331704/zorroEpisodes.txt b/.besouro/20161007144331704/zorroEpisodes.txt index a02b4a5..9bf93b3 100644 --- a/.besouro/20161007144331704/zorroEpisodes.txt +++ b/.besouro/20161007144331704/zorroEpisodes.txt @@ -1,2 +1,3 @@ 1475844040610 refactoring 2A 3428 false 1475844084856 test-addition 1 44 false +1475844103820 test-addition 1 18 false diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 9e1d40c..6f1199c 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -84,6 +84,13 @@ public void testRomanNumberals_Fourteen() { assertEquals(14, integer); } + @Test + public void testRomanNumberals_Twenty() { + + int integer = test.convertToInteger("XX"); + assertEquals(12, integer); + + } From e9fcd08206ec6fc9648a78de67ce64b6f734abb3 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:42:59 +0300 Subject: [PATCH 066/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 1 + tests/TestRomanNumerals.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index a0e68ca..4324c42 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -234,3 +234,4 @@ UnitTestSessionAction 1475844103820 TestRomanNumerals.java OK RefactoringAction 1475844169179 TestRomanNumerals.java ADD void testRomanNumberals_Fourteen()/2 METHOD RefactoringAction 1475844173193 TestRomanNumerals.java RENAME testRomanNumberals_Fourteen()/2=>void testRomanNumberals_Twenty() METHOD EditAction 1475844175050 TestRomanNumerals.java 1794 12 23 12 +EditAction 1475844179406 TestRomanNumerals.java 1794 12 23 12 diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 6f1199c..d95efa2 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -88,7 +88,7 @@ public void testRomanNumberals_Fourteen() { public void testRomanNumberals_Twenty() { int integer = test.convertToInteger("XX"); - assertEquals(12, integer); + assertEquals(20, integer); } From 419c1c527ad9f9c474384fbdd75419f56434411c Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:43:10 +0300 Subject: [PATCH 067/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 5 +++++ .besouro/20161007144331704/besouroEpisodes.txt | 2 ++ .besouro/20161007144331704/randomHeuristicEpisodes.txt | 1 + .besouro/20161007144331704/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 6 ++++++ 5 files changed, 15 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 4324c42..4ce8a74 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -235,3 +235,8 @@ RefactoringAction 1475844169179 TestRomanNumerals.java ADD void testRomanNumbera RefactoringAction 1475844173193 TestRomanNumerals.java RENAME testRomanNumberals_Fourteen()/2=>void testRomanNumberals_Twenty() METHOD EditAction 1475844175050 TestRomanNumerals.java 1794 12 23 12 EditAction 1475844179406 TestRomanNumerals.java 1794 12 23 12 +UnitTestCaseAction 1475844181274 TestRomanNumerals.java OK +UnitTestSessionAction 1475844181275 TestRomanNumerals.java OK +RefactoringAction 1475844185720 TestRomanNumerals.java ADD void testRomanNumberals_Twenty()/2 METHOD +RefactoringAction 1475844187734 TestRomanNumerals.java RENAME testRomanNumberals_Twenty()/2=>void testRomanNumberals_TwentyFive() METHOD +EditAction 1475844189805 TestRomanNumerals.java 1923 13 25 13 diff --git a/.besouro/20161007144331704/besouroEpisodes.txt b/.besouro/20161007144331704/besouroEpisodes.txt index 3159e3d..f07b4fa 100644 --- a/.besouro/20161007144331704/besouroEpisodes.txt +++ b/.besouro/20161007144331704/besouroEpisodes.txt @@ -11,3 +11,5 @@ 1475844103823 test-addition 1 16 true 1475844103824 test-addition 2 16 true 1475844103825 test-addition 2 16 true +1475844181275 test-addition 1 12 true +1475844181276 test-addition 1 12 true diff --git a/.besouro/20161007144331704/randomHeuristicEpisodes.txt b/.besouro/20161007144331704/randomHeuristicEpisodes.txt index 1444df5..62f31b9 100644 --- a/.besouro/20161007144331704/randomHeuristicEpisodes.txt +++ b/.besouro/20161007144331704/randomHeuristicEpisodes.txt @@ -1,3 +1,4 @@ 1475844040610 refactoring 2A 3428 false 1475844084856 test-addition 1 34 false 1475844103820 test-addition 1 16 false +1475844181275 test-addition 1 12 true diff --git a/.besouro/20161007144331704/zorroEpisodes.txt b/.besouro/20161007144331704/zorroEpisodes.txt index 9bf93b3..494f55b 100644 --- a/.besouro/20161007144331704/zorroEpisodes.txt +++ b/.besouro/20161007144331704/zorroEpisodes.txt @@ -1,3 +1,4 @@ 1475844040610 refactoring 2A 3428 false 1475844084856 test-addition 1 44 false 1475844103820 test-addition 1 18 false +1475844181275 test-addition 1 77 false diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index d95efa2..196f779 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -91,6 +91,12 @@ public void testRomanNumberals_Twenty() { assertEquals(20, integer); } + public void testRomanNumberals_TwentyFive() { + + int integer = test.convertToInteger("XXV"); + assertEquals(20, integer); + + } From 9d286af5ef594ffd233bb074e9fd68e581921df7 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:43:12 +0300 Subject: [PATCH 068/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 1 + tests/TestRomanNumerals.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 4ce8a74..4978f67 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -240,3 +240,4 @@ UnitTestSessionAction 1475844181275 TestRomanNumerals.java OK RefactoringAction 1475844185720 TestRomanNumerals.java ADD void testRomanNumberals_Twenty()/2 METHOD RefactoringAction 1475844187734 TestRomanNumerals.java RENAME testRomanNumberals_Twenty()/2=>void testRomanNumberals_TwentyFive() METHOD EditAction 1475844189805 TestRomanNumerals.java 1923 13 25 13 +EditAction 1475844192519 TestRomanNumerals.java 1923 13 25 13 diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 196f779..6a9474d 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -94,7 +94,7 @@ public void testRomanNumberals_Twenty() { public void testRomanNumberals_TwentyFive() { int integer = test.convertToInteger("XXV"); - assertEquals(20, integer); + assertEquals(25, integer); } From 1119f0b2e2d30451204521d6eea3346492f053dd Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:43:33 +0300 Subject: [PATCH 069/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 4 ++++ .besouro/20161007144331704/besouroEpisodes.txt | 2 ++ .besouro/20161007144331704/randomHeuristicEpisodes.txt | 1 + .besouro/20161007144331704/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 7 +++++++ 5 files changed, 15 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 4978f67..378dd6b 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -241,3 +241,7 @@ RefactoringAction 1475844185720 TestRomanNumerals.java ADD void testRomanNumbera RefactoringAction 1475844187734 TestRomanNumerals.java RENAME testRomanNumberals_Twenty()/2=>void testRomanNumberals_TwentyFive() METHOD EditAction 1475844189805 TestRomanNumerals.java 1923 13 25 13 EditAction 1475844192519 TestRomanNumerals.java 1923 13 25 13 +UnitTestCaseAction 1475844194480 TestRomanNumerals.java OK +UnitTestSessionAction 1475844194481 TestRomanNumerals.java OK +RefactoringAction 1475844199260 TestRomanNumerals.java ADD void testRomanNumberals_TwentyFive()/2 METHOD +EditAction 1475844213139 TestRomanNumerals.java 2049 14 27 14 diff --git a/.besouro/20161007144331704/besouroEpisodes.txt b/.besouro/20161007144331704/besouroEpisodes.txt index f07b4fa..86caa94 100644 --- a/.besouro/20161007144331704/besouroEpisodes.txt +++ b/.besouro/20161007144331704/besouroEpisodes.txt @@ -13,3 +13,5 @@ 1475844103825 test-addition 2 16 true 1475844181275 test-addition 1 12 true 1475844181276 test-addition 1 12 true +1475844194481 test-addition 1 8 true +1475844194482 test-addition 1 8 true diff --git a/.besouro/20161007144331704/randomHeuristicEpisodes.txt b/.besouro/20161007144331704/randomHeuristicEpisodes.txt index 62f31b9..1f5edf3 100644 --- a/.besouro/20161007144331704/randomHeuristicEpisodes.txt +++ b/.besouro/20161007144331704/randomHeuristicEpisodes.txt @@ -2,3 +2,4 @@ 1475844084856 test-addition 1 34 false 1475844103820 test-addition 1 16 false 1475844181275 test-addition 1 12 true +1475844194481 test-addition 1 8 false diff --git a/.besouro/20161007144331704/zorroEpisodes.txt b/.besouro/20161007144331704/zorroEpisodes.txt index 494f55b..c4a383a 100644 --- a/.besouro/20161007144331704/zorroEpisodes.txt +++ b/.besouro/20161007144331704/zorroEpisodes.txt @@ -2,3 +2,4 @@ 1475844084856 test-addition 1 44 false 1475844103820 test-addition 1 18 false 1475844181275 test-addition 1 77 false +1475844194481 test-addition 1 13 false diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 6a9474d..11d8bde 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -97,6 +97,13 @@ public void testRomanNumberals_TwentyFive() { assertEquals(25, integer); } + public void testRomanNumberals_Fifty() { + + int integer = test.convertToInteger("XXV"); + assertEquals(25, integer); + + } + From f97b4ff9b50d8af20a939745039daa34751de297 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:43:36 +0300 Subject: [PATCH 070/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 1 + tests/TestRomanNumerals.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 378dd6b..e5b5204 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -245,3 +245,4 @@ UnitTestCaseAction 1475844194480 TestRomanNumerals.java OK UnitTestSessionAction 1475844194481 TestRomanNumerals.java OK RefactoringAction 1475844199260 TestRomanNumerals.java ADD void testRomanNumberals_TwentyFive()/2 METHOD EditAction 1475844213139 TestRomanNumerals.java 2049 14 27 14 +EditAction 1475844216189 TestRomanNumerals.java 2047 14 27 14 diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 11d8bde..d0da6a6 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -99,7 +99,7 @@ public void testRomanNumberals_TwentyFive() { } public void testRomanNumberals_Fifty() { - int integer = test.convertToInteger("XXV"); + int integer = test.convertToInteger("L"); assertEquals(25, integer); } From cbf35b8e449b7153f261c6fe0fdf1ba6870cca28 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:43:39 +0300 Subject: [PATCH 071/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 1 + tests/TestRomanNumerals.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index e5b5204..e7fa5f0 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -246,3 +246,4 @@ UnitTestSessionAction 1475844194481 TestRomanNumerals.java OK RefactoringAction 1475844199260 TestRomanNumerals.java ADD void testRomanNumberals_TwentyFive()/2 METHOD EditAction 1475844213139 TestRomanNumerals.java 2049 14 27 14 EditAction 1475844216189 TestRomanNumerals.java 2047 14 27 14 +EditAction 1475844219039 TestRomanNumerals.java 2047 14 27 14 diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index d0da6a6..e3b6a81 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -100,7 +100,7 @@ public void testRomanNumberals_TwentyFive() { public void testRomanNumberals_Fifty() { int integer = test.convertToInteger("L"); - assertEquals(25, integer); + assertEquals(50, integer); } From 7f65f0b4b0c67a1473524159283e11321385389c Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:44:08 +0300 Subject: [PATCH 072/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 5 +++++ .besouro/20161007144331704/besouroEpisodes.txt | 3 +++ .besouro/20161007144331704/randomHeuristicEpisodes.txt | 2 ++ .besouro/20161007144331704/zorroEpisodes.txt | 2 ++ tests/TestRomanNumerals.java | 2 ++ 5 files changed, 14 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index e7fa5f0..f3c1708 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -247,3 +247,8 @@ RefactoringAction 1475844199260 TestRomanNumerals.java ADD void testRomanNumbera EditAction 1475844213139 TestRomanNumerals.java 2049 14 27 14 EditAction 1475844216189 TestRomanNumerals.java 2047 14 27 14 EditAction 1475844219039 TestRomanNumerals.java 2047 14 27 14 +UnitTestCaseAction 1475844221020 TestRomanNumerals.java OK +UnitTestSessionAction 1475844221021 TestRomanNumerals.java OK +UnitTestCaseAction 1475844224883 TestRomanNumerals.java OK +UnitTestSessionAction 1475844224884 TestRomanNumerals.java OK +EditAction 1475844248153 TestRomanNumerals.java 2061 14 27 14 diff --git a/.besouro/20161007144331704/besouroEpisodes.txt b/.besouro/20161007144331704/besouroEpisodes.txt index 86caa94..9c0279f 100644 --- a/.besouro/20161007144331704/besouroEpisodes.txt +++ b/.besouro/20161007144331704/besouroEpisodes.txt @@ -15,3 +15,6 @@ 1475844181276 test-addition 1 12 true 1475844194481 test-addition 1 8 true 1475844194482 test-addition 1 8 true +1475844221021 test-addition 1 21 true +1475844221022 test-addition 1 21 true +1475844224884 regression 1 0 true diff --git a/.besouro/20161007144331704/randomHeuristicEpisodes.txt b/.besouro/20161007144331704/randomHeuristicEpisodes.txt index 1f5edf3..0000f52 100644 --- a/.besouro/20161007144331704/randomHeuristicEpisodes.txt +++ b/.besouro/20161007144331704/randomHeuristicEpisodes.txt @@ -3,3 +3,5 @@ 1475844103820 test-addition 1 16 false 1475844181275 test-addition 1 12 true 1475844194481 test-addition 1 8 false +1475844221021 test-addition 1 21 false +1475844224884 regression 1 0 true diff --git a/.besouro/20161007144331704/zorroEpisodes.txt b/.besouro/20161007144331704/zorroEpisodes.txt index c4a383a..711ba44 100644 --- a/.besouro/20161007144331704/zorroEpisodes.txt +++ b/.besouro/20161007144331704/zorroEpisodes.txt @@ -3,3 +3,5 @@ 1475844103820 test-addition 1 18 false 1475844181275 test-addition 1 77 false 1475844194481 test-addition 1 13 false +1475844221021 test-addition 1 26 false +1475844224884 regression 1 3 false diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index e3b6a81..2a96bae 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -91,12 +91,14 @@ public void testRomanNumberals_Twenty() { assertEquals(20, integer); } + @Test public void testRomanNumberals_TwentyFive() { int integer = test.convertToInteger("XXV"); assertEquals(25, integer); } + @Test public void testRomanNumberals_Fifty() { int integer = test.convertToInteger("L"); From f36b0ee2b8c33beffcf7cd42455f61964adf13a2 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:44:33 +0300 Subject: [PATCH 073/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index f3c1708..a50cfae 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -252,3 +252,6 @@ UnitTestSessionAction 1475844221021 TestRomanNumerals.java OK UnitTestCaseAction 1475844224883 TestRomanNumerals.java OK UnitTestSessionAction 1475844224884 TestRomanNumerals.java OK EditAction 1475844248153 TestRomanNumerals.java 2061 14 27 14 +UnitTestCaseAction 1475844250978 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475844250979 TestRomanNumerals.java FAIL +EditAction 1475844273118 RomanNumerals.java 1174 1 4 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 4e9e1bb..24145dc 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -28,6 +28,9 @@ public int convertToInteger(String romanNum) { convertedInteger += 10; break; + case 'L': + convertedInteger += 50; + break; } } if (romanNum.contains("IV")){ From a2bb11f8c4ab84fcdac499331b893605d79cd44d Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:44:54 +0300 Subject: [PATCH 074/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 5 +++++ .besouro/20161007144331704/besouroEpisodes.txt | 1 + .besouro/20161007144331704/randomHeuristicEpisodes.txt | 1 + .besouro/20161007144331704/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 8 +++++++- 5 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index a50cfae..55f94ea 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -255,3 +255,8 @@ EditAction 1475844248153 TestRomanNumerals.java 2061 14 27 14 UnitTestCaseAction 1475844250978 TestRomanNumerals.java FAIL UnitTestSessionAction 1475844250979 TestRomanNumerals.java FAIL EditAction 1475844273118 RomanNumerals.java 1174 1 4 0 +UnitTestCaseAction 1475844275404 TestRomanNumerals.java OK +UnitTestSessionAction 1475844275406 TestRomanNumerals.java OK +RefactoringAction 1475844289344 TestRomanNumerals.java ADD void testRomanNumberals_Fifty()/2 METHOD +RefactoringAction 1475844293356 TestRomanNumerals.java RENAME testRomanNumberals_Fifty()/2=>void testRomanNumberals_Fourty() METHOD +EditAction 1475844293615 TestRomanNumerals.java 2189 15 29 15 diff --git a/.besouro/20161007144331704/besouroEpisodes.txt b/.besouro/20161007144331704/besouroEpisodes.txt index 9c0279f..2d5c0fb 100644 --- a/.besouro/20161007144331704/besouroEpisodes.txt +++ b/.besouro/20161007144331704/besouroEpisodes.txt @@ -18,3 +18,4 @@ 1475844221021 test-addition 1 21 true 1475844221022 test-addition 1 21 true 1475844224884 regression 1 0 true +1475844275406 refactoring 2A 27 true diff --git a/.besouro/20161007144331704/randomHeuristicEpisodes.txt b/.besouro/20161007144331704/randomHeuristicEpisodes.txt index 0000f52..b22e6a8 100644 --- a/.besouro/20161007144331704/randomHeuristicEpisodes.txt +++ b/.besouro/20161007144331704/randomHeuristicEpisodes.txt @@ -5,3 +5,4 @@ 1475844194481 test-addition 1 8 false 1475844221021 test-addition 1 21 false 1475844224884 regression 1 0 true +1475844275406 refactoring 2A 27 true diff --git a/.besouro/20161007144331704/zorroEpisodes.txt b/.besouro/20161007144331704/zorroEpisodes.txt index 711ba44..a7468ba 100644 --- a/.besouro/20161007144331704/zorroEpisodes.txt +++ b/.besouro/20161007144331704/zorroEpisodes.txt @@ -5,3 +5,4 @@ 1475844194481 test-addition 1 13 false 1475844221021 test-addition 1 26 false 1475844224884 regression 1 3 false +1475844275406 refactoring 2A 50 false diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 2a96bae..0cc7171 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -105,7 +105,13 @@ public void testRomanNumberals_Fifty() { assertEquals(50, integer); } - + @Test + public void testRomanNumberals_Fourty() { + + int integer = test.convertToInteger("L"); + assertEquals(50, integer); + + } From 60289fcba9f6b7e58260ec3fbb5211b011f07473 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:44:59 +0300 Subject: [PATCH 075/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 1 + tests/TestRomanNumerals.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 55f94ea..cf57769 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -260,3 +260,4 @@ UnitTestSessionAction 1475844275406 TestRomanNumerals.java OK RefactoringAction 1475844289344 TestRomanNumerals.java ADD void testRomanNumberals_Fifty()/2 METHOD RefactoringAction 1475844293356 TestRomanNumerals.java RENAME testRomanNumberals_Fifty()/2=>void testRomanNumberals_Fourty() METHOD EditAction 1475844293615 TestRomanNumerals.java 2189 15 29 15 +EditAction 1475844299518 TestRomanNumerals.java 2190 15 29 15 diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 0cc7171..9ee7a6b 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -108,7 +108,7 @@ public void testRomanNumberals_Fifty() { @Test public void testRomanNumberals_Fourty() { - int integer = test.convertToInteger("L"); + int integer = test.convertToInteger("XL"); assertEquals(50, integer); } From 50681387a53da82bcd20169f3586d71308e9ae20 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:45:21 +0300 Subject: [PATCH 076/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 1 + src/RomanNumerals.java | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index cf57769..3707864 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -261,3 +261,4 @@ RefactoringAction 1475844289344 TestRomanNumerals.java ADD void testRomanNumbera RefactoringAction 1475844293356 TestRomanNumerals.java RENAME testRomanNumberals_Fifty()/2=>void testRomanNumberals_Fourty() METHOD EditAction 1475844293615 TestRomanNumerals.java 2189 15 29 15 EditAction 1475844299518 TestRomanNumerals.java 2190 15 29 15 +EditAction 1475844320674 RomanNumerals.java 1240 1 5 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 24145dc..783b932 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -37,6 +37,10 @@ public int convertToInteger(String romanNum) { convertedInteger -= 2; } + if (romanNum.contains("XL")){ + + convertedInteger -= 2; + } return convertedInteger; From ab510fd60ed3016ed98ec529ad451db25342b859 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:45:31 +0300 Subject: [PATCH 077/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 3707864..b15eeeb 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -262,3 +262,6 @@ RefactoringAction 1475844293356 TestRomanNumerals.java RENAME testRomanNumberals EditAction 1475844293615 TestRomanNumerals.java 2189 15 29 15 EditAction 1475844299518 TestRomanNumerals.java 2190 15 29 15 EditAction 1475844320674 RomanNumerals.java 1240 1 5 0 +UnitTestCaseAction 1475844326681 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475844326682 TestRomanNumerals.java FAIL +EditAction 1475844331192 RomanNumerals.java 1241 1 5 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 783b932..d4290d6 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -39,7 +39,7 @@ public int convertToInteger(String romanNum) { } if (romanNum.contains("XL")){ - convertedInteger -= 2; + convertedInteger -= 10; } From a7efb53bd0e3e259ec79a38aa5c0b430302b6d41 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:45:58 +0300 Subject: [PATCH 078/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 6 ++++++ .besouro/20161007144331704/besouroEpisodes.txt | 2 ++ .../randomHeuristicEpisodes.txt | 1 + .besouro/20161007144331704/zorroEpisodes.txt | 17 +++++++++-------- tests/TestRomanNumerals.java | 7 +++++++ 5 files changed, 25 insertions(+), 8 deletions(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index b15eeeb..d3a7754 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -265,3 +265,9 @@ EditAction 1475844320674 RomanNumerals.java 1240 1 5 0 UnitTestCaseAction 1475844326681 TestRomanNumerals.java FAIL UnitTestSessionAction 1475844326682 TestRomanNumerals.java FAIL EditAction 1475844331192 RomanNumerals.java 1241 1 5 0 +UnitTestCaseAction 1475844335887 TestRomanNumerals.java OK +UnitTestSessionAction 1475844335889 TestRomanNumerals.java OK +RefactoringAction 1475844349391 TestRomanNumerals.java ADD void testRomanNumberals_Fourty()/2 METHOD +RefactoringAction 1475844353405 TestRomanNumerals.java RENAME testRomanNumberals_Fourty()/2=>void testRomanNumberals_S() METHOD +RefactoringAction 1475844354419 TestRomanNumerals.java RENAME testRomanNumberals_S()=>void testRomanNumberals_Sixty() METHOD +EditAction 1475844358401 TestRomanNumerals.java 2320 16 31 16 diff --git a/.besouro/20161007144331704/besouroEpisodes.txt b/.besouro/20161007144331704/besouroEpisodes.txt index 2d5c0fb..016f4e1 100644 --- a/.besouro/20161007144331704/besouroEpisodes.txt +++ b/.besouro/20161007144331704/besouroEpisodes.txt @@ -19,3 +19,5 @@ 1475844221022 test-addition 1 21 true 1475844224884 regression 1 0 true 1475844275406 refactoring 2A 27 true +1475844335889 test-first 3 46 true +1475844335890 test-first 3 46 true diff --git a/.besouro/20161007144331704/randomHeuristicEpisodes.txt b/.besouro/20161007144331704/randomHeuristicEpisodes.txt index b22e6a8..3bd0216 100644 --- a/.besouro/20161007144331704/randomHeuristicEpisodes.txt +++ b/.besouro/20161007144331704/randomHeuristicEpisodes.txt @@ -6,3 +6,4 @@ 1475844221021 test-addition 1 21 false 1475844224884 regression 1 0 true 1475844275406 refactoring 2A 27 true +1475844335889 test-first 3 46 true diff --git a/.besouro/20161007144331704/zorroEpisodes.txt b/.besouro/20161007144331704/zorroEpisodes.txt index a7468ba..62de854 100644 --- a/.besouro/20161007144331704/zorroEpisodes.txt +++ b/.besouro/20161007144331704/zorroEpisodes.txt @@ -1,8 +1,9 @@ -1475844040610 refactoring 2A 3428 false -1475844084856 test-addition 1 44 false -1475844103820 test-addition 1 18 false -1475844181275 test-addition 1 77 false -1475844194481 test-addition 1 13 false -1475844221021 test-addition 1 26 false -1475844224884 regression 1 3 false -1475844275406 refactoring 2A 50 false +1475844040610 refactoring 2A 3428 true +1475844084856 test-addition 1 44 true +1475844103820 test-addition 1 18 true +1475844181275 test-addition 1 77 true +1475844194481 test-addition 1 13 true +1475844221021 test-addition 1 26 true +1475844224884 regression 1 3 true +1475844275406 refactoring 2A 50 true +1475844335889 test-first 3 60 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 9ee7a6b..e65f517 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -112,6 +112,13 @@ public void testRomanNumberals_Fourty() { assertEquals(50, integer); } + @Test + public void testRomanNumberals_Sixty() { + + int integer = test.convertToInteger("LX"); + assertEquals(60, integer); + + } From b59e1ad26411f2d15619d7c03fed0dddd0dbb49d Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:46:14 +0300 Subject: [PATCH 079/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 5 +++++ .besouro/20161007144331704/besouroEpisodes.txt | 2 ++ .besouro/20161007144331704/randomHeuristicEpisodes.txt | 1 + .besouro/20161007144331704/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 7 +++++++ 5 files changed, 16 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index d3a7754..86e3795 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -271,3 +271,8 @@ RefactoringAction 1475844349391 TestRomanNumerals.java ADD void testRomanNumbera RefactoringAction 1475844353405 TestRomanNumerals.java RENAME testRomanNumberals_Fourty()/2=>void testRomanNumberals_S() METHOD RefactoringAction 1475844354419 TestRomanNumerals.java RENAME testRomanNumberals_S()=>void testRomanNumberals_Sixty() METHOD EditAction 1475844358401 TestRomanNumerals.java 2320 16 31 16 +UnitTestCaseAction 1475844360719 TestRomanNumerals.java OK +UnitTestSessionAction 1475844360720 TestRomanNumerals.java OK +RefactoringAction 1475844366963 TestRomanNumerals.java ADD void testRomanNumberals_Sixty()/2 METHOD +RefactoringAction 1475844369478 TestRomanNumerals.java RENAME testRomanNumberals_Sixty()/2=>void testRomanNumberals_SixtyFour() METHOD +EditAction 1475844373577 TestRomanNumerals.java 2456 17 33 17 diff --git a/.besouro/20161007144331704/besouroEpisodes.txt b/.besouro/20161007144331704/besouroEpisodes.txt index 016f4e1..5ff18ea 100644 --- a/.besouro/20161007144331704/besouroEpisodes.txt +++ b/.besouro/20161007144331704/besouroEpisodes.txt @@ -21,3 +21,5 @@ 1475844275406 refactoring 2A 27 true 1475844335889 test-first 3 46 true 1475844335890 test-first 3 46 true +1475844360720 test-addition 1 11 true +1475844360721 test-addition 1 11 true diff --git a/.besouro/20161007144331704/randomHeuristicEpisodes.txt b/.besouro/20161007144331704/randomHeuristicEpisodes.txt index 3bd0216..5913ffb 100644 --- a/.besouro/20161007144331704/randomHeuristicEpisodes.txt +++ b/.besouro/20161007144331704/randomHeuristicEpisodes.txt @@ -7,3 +7,4 @@ 1475844224884 regression 1 0 true 1475844275406 refactoring 2A 27 true 1475844335889 test-first 3 46 true +1475844360720 test-addition 1 11 true diff --git a/.besouro/20161007144331704/zorroEpisodes.txt b/.besouro/20161007144331704/zorroEpisodes.txt index 62de854..8e77c7b 100644 --- a/.besouro/20161007144331704/zorroEpisodes.txt +++ b/.besouro/20161007144331704/zorroEpisodes.txt @@ -7,3 +7,4 @@ 1475844224884 regression 1 3 true 1475844275406 refactoring 2A 50 true 1475844335889 test-first 3 60 true +1475844360720 test-addition 1 24 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index e65f517..ea5a96e 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -119,6 +119,13 @@ public void testRomanNumberals_Sixty() { assertEquals(60, integer); } + @Test + public void testRomanNumberals_SixtyFour() { + + int integer = test.convertToInteger("LXIV"); + assertEquals(64, integer); + + } From c6fa887af892a11ce327829ed16248d79e9f8863 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:46:31 +0300 Subject: [PATCH 080/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 5 +++++ .besouro/20161007144331704/besouroEpisodes.txt | 2 ++ .besouro/20161007144331704/randomHeuristicEpisodes.txt | 1 + .besouro/20161007144331704/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 7 +++++++ 5 files changed, 16 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 86e3795..037b68c 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -276,3 +276,8 @@ UnitTestSessionAction 1475844360720 TestRomanNumerals.java OK RefactoringAction 1475844366963 TestRomanNumerals.java ADD void testRomanNumberals_Sixty()/2 METHOD RefactoringAction 1475844369478 TestRomanNumerals.java RENAME testRomanNumberals_Sixty()/2=>void testRomanNumberals_SixtyFour() METHOD EditAction 1475844373577 TestRomanNumerals.java 2456 17 33 17 +UnitTestCaseAction 1475844375630 TestRomanNumerals.java OK +UnitTestSessionAction 1475844375631 TestRomanNumerals.java OK +RefactoringAction 1475844380513 TestRomanNumerals.java ADD void testRomanNumberals_SixtyFour()/2 METHOD +RefactoringAction 1475844387027 TestRomanNumerals.java RENAME testRomanNumberals_SixtyFour()/2=>void testRomanNumberals_Hundred() METHOD +EditAction 1475844391089 TestRomanNumerals.java 2588 18 35 18 diff --git a/.besouro/20161007144331704/besouroEpisodes.txt b/.besouro/20161007144331704/besouroEpisodes.txt index 5ff18ea..f6610e7 100644 --- a/.besouro/20161007144331704/besouroEpisodes.txt +++ b/.besouro/20161007144331704/besouroEpisodes.txt @@ -23,3 +23,5 @@ 1475844335890 test-first 3 46 true 1475844360720 test-addition 1 11 true 1475844360721 test-addition 1 11 true +1475844375631 test-addition 1 8 true +1475844375632 test-addition 1 8 true diff --git a/.besouro/20161007144331704/randomHeuristicEpisodes.txt b/.besouro/20161007144331704/randomHeuristicEpisodes.txt index 5913ffb..c29e54f 100644 --- a/.besouro/20161007144331704/randomHeuristicEpisodes.txt +++ b/.besouro/20161007144331704/randomHeuristicEpisodes.txt @@ -8,3 +8,4 @@ 1475844275406 refactoring 2A 27 true 1475844335889 test-first 3 46 true 1475844360720 test-addition 1 11 true +1475844375631 test-addition 1 8 false diff --git a/.besouro/20161007144331704/zorroEpisodes.txt b/.besouro/20161007144331704/zorroEpisodes.txt index 8e77c7b..0000047 100644 --- a/.besouro/20161007144331704/zorroEpisodes.txt +++ b/.besouro/20161007144331704/zorroEpisodes.txt @@ -8,3 +8,4 @@ 1475844275406 refactoring 2A 50 true 1475844335889 test-first 3 60 true 1475844360720 test-addition 1 24 true +1475844375631 test-addition 1 14 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index ea5a96e..fa8addc 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -126,6 +126,13 @@ public void testRomanNumberals_SixtyFour() { assertEquals(64, integer); } + @Test + public void testRomanNumberals_Hundred() { + + int integer = test.convertToInteger("C"); + assertEquals(100, integer); + + } From 7b67bfa57153c1eccc46821b6781a1a3982b7cb1 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:46:48 +0300 Subject: [PATCH 081/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 037b68c..1ba5a3a 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -281,3 +281,6 @@ UnitTestSessionAction 1475844375631 TestRomanNumerals.java OK RefactoringAction 1475844380513 TestRomanNumerals.java ADD void testRomanNumberals_SixtyFour()/2 METHOD RefactoringAction 1475844387027 TestRomanNumerals.java RENAME testRomanNumberals_SixtyFour()/2=>void testRomanNumberals_Hundred() METHOD EditAction 1475844391089 TestRomanNumerals.java 2588 18 35 18 +UnitTestCaseAction 1475844393063 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475844393064 TestRomanNumerals.java FAIL +EditAction 1475844407956 RomanNumerals.java 1297 1 0 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index d4290d6..28f2fbb 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -32,6 +32,10 @@ public int convertToInteger(String romanNum) { convertedInteger += 50; break; } + case 'C': + convertedInteger += 100; + break; + } } if (romanNum.contains("IV")){ From 207d8fd35eaf0765a5e1e67e2b66d879dafde2da Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:47:32 +0300 Subject: [PATCH 082/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 10 ++++++++++ .besouro/20161007144331704/besouroEpisodes.txt | 2 ++ .besouro/20161007144331704/randomHeuristicEpisodes.txt | 1 + .besouro/20161007144331704/zorroEpisodes.txt | 1 + src/RomanNumerals.java | 4 ++-- tests/TestRomanNumerals.java | 7 +++++++ 6 files changed, 23 insertions(+), 2 deletions(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 1ba5a3a..45960c9 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -284,3 +284,13 @@ EditAction 1475844391089 TestRomanNumerals.java 2588 18 35 18 UnitTestCaseAction 1475844393063 TestRomanNumerals.java FAIL UnitTestSessionAction 1475844393064 TestRomanNumerals.java FAIL EditAction 1475844407956 RomanNumerals.java 1297 1 0 0 +CompilationAction 1475844409252 RomanNumerals.java +CompilationAction 1475844409254 RomanNumerals.java +CompilationAction 1475844409255 RomanNumerals.java +CompilationAction 1475844425236 RomanNumerals.java +CompilationAction 1475844425238 RomanNumerals.java +UnitTestCaseAction 1475844428151 TestRomanNumerals.java OK +UnitTestSessionAction 1475844428152 TestRomanNumerals.java OK +RefactoringAction 1475844438576 TestRomanNumerals.java ADD void testRomanNumberals_Hundred()/2 METHOD +RefactoringAction 1475844444590 TestRomanNumerals.java RENAME testRomanNumberals_Hundred()/2=>void testRomanNumberals_Ninety() METHOD +EditAction 1475844452084 TestRomanNumerals.java 2719 19 37 19 diff --git a/.besouro/20161007144331704/besouroEpisodes.txt b/.besouro/20161007144331704/besouroEpisodes.txt index f6610e7..abd43b4 100644 --- a/.besouro/20161007144331704/besouroEpisodes.txt +++ b/.besouro/20161007144331704/besouroEpisodes.txt @@ -25,3 +25,5 @@ 1475844360721 test-addition 1 11 true 1475844375631 test-addition 1 8 true 1475844375632 test-addition 1 8 true +1475844428152 test-first 3 47 true +1475844428153 test-first 3 47 true diff --git a/.besouro/20161007144331704/randomHeuristicEpisodes.txt b/.besouro/20161007144331704/randomHeuristicEpisodes.txt index c29e54f..cc4a20e 100644 --- a/.besouro/20161007144331704/randomHeuristicEpisodes.txt +++ b/.besouro/20161007144331704/randomHeuristicEpisodes.txt @@ -9,3 +9,4 @@ 1475844335889 test-first 3 46 true 1475844360720 test-addition 1 11 true 1475844375631 test-addition 1 8 false +1475844428152 test-first 3 47 true diff --git a/.besouro/20161007144331704/zorroEpisodes.txt b/.besouro/20161007144331704/zorroEpisodes.txt index 0000047..ef65c5c 100644 --- a/.besouro/20161007144331704/zorroEpisodes.txt +++ b/.besouro/20161007144331704/zorroEpisodes.txt @@ -9,3 +9,4 @@ 1475844335889 test-first 3 60 true 1475844360720 test-addition 1 24 true 1475844375631 test-addition 1 14 true +1475844428152 test-first 3 52 true diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 28f2fbb..2e13015 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -31,11 +31,11 @@ public int convertToInteger(String romanNum) { case 'L': convertedInteger += 50; break; - } + case 'C': convertedInteger += 100; break; - } + } } if (romanNum.contains("IV")){ diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index fa8addc..0802963 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -133,6 +133,13 @@ public void testRomanNumberals_Hundred() { assertEquals(100, integer); } + @Test + public void testRomanNumberals_Ninety() { + + int integer = test.convertToInteger("XC"); + assertEquals(90, integer); + + } From 6b8d5cc38424b7e9556b19e51279f881c041f973 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:47:46 +0300 Subject: [PATCH 083/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 45960c9..9c3f631 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -294,3 +294,6 @@ UnitTestSessionAction 1475844428152 TestRomanNumerals.java OK RefactoringAction 1475844438576 TestRomanNumerals.java ADD void testRomanNumberals_Hundred()/2 METHOD RefactoringAction 1475844444590 TestRomanNumerals.java RENAME testRomanNumberals_Hundred()/2=>void testRomanNumberals_Ninety() METHOD EditAction 1475844452084 TestRomanNumerals.java 2719 19 37 19 +UnitTestCaseAction 1475844454136 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475844454137 TestRomanNumerals.java FAIL +EditAction 1475844466155 RomanNumerals.java 1364 1 6 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 2e13015..7eb63ab 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -45,6 +45,10 @@ public int convertToInteger(String romanNum) { convertedInteger -= 10; } + if (romanNum.contains("XC")){ + + convertedInteger -= 90; + } return convertedInteger; From 818c8c5236a102f93458defd15f610fa274e621e Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:47:50 +0300 Subject: [PATCH 084/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 1 + src/RomanNumerals.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 9c3f631..19ac804 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -297,3 +297,4 @@ EditAction 1475844452084 TestRomanNumerals.java 2719 19 37 19 UnitTestCaseAction 1475844454136 TestRomanNumerals.java FAIL UnitTestSessionAction 1475844454137 TestRomanNumerals.java FAIL EditAction 1475844466155 RomanNumerals.java 1364 1 6 0 +EditAction 1475844470417 RomanNumerals.java 1364 1 6 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 7eb63ab..3afb570 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -47,7 +47,7 @@ public int convertToInteger(String romanNum) { } if (romanNum.contains("XC")){ - convertedInteger -= 90; + convertedInteger -= 10; } From f759eb03625c0cd1e57057c189258f1ce8611013 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:50:12 +0300 Subject: [PATCH 085/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 9 +++++++++ src/RomanNumerals.java | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 19ac804..45608d8 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -298,3 +298,12 @@ UnitTestCaseAction 1475844454136 TestRomanNumerals.java FAIL UnitTestSessionAction 1475844454137 TestRomanNumerals.java FAIL EditAction 1475844466155 RomanNumerals.java 1364 1 6 0 EditAction 1475844470417 RomanNumerals.java 1364 1 6 0 +UnitTestCaseAction 1475844476031 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475844476032 TestRomanNumerals.java FAIL +UnitTestCaseAction 1475844480090 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475844480091 TestRomanNumerals.java FAIL +UnitTestCaseAction 1475844495421 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475844495422 TestRomanNumerals.java FAIL +UnitTestCaseAction 1475844533666 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475844533667 TestRomanNumerals.java FAIL +EditAction 1475844611750 RomanNumerals.java 1366 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 3afb570..51a1f1a 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -36,7 +36,7 @@ public int convertToInteger(String romanNum) { convertedInteger += 100; break; } - } + if (romanNum.contains("IV")){ convertedInteger -= 2; @@ -49,6 +49,7 @@ public int convertToInteger(String romanNum) { convertedInteger -= 10; } + } return convertedInteger; From 838ff6ac345242e4291b1dd61d7fd3b05b6e6f24 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:50:23 +0300 Subject: [PATCH 086/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 45608d8..88fe28f 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -307,3 +307,6 @@ UnitTestSessionAction 1475844495422 TestRomanNumerals.java FAIL UnitTestCaseAction 1475844533666 TestRomanNumerals.java FAIL UnitTestSessionAction 1475844533667 TestRomanNumerals.java FAIL EditAction 1475844611750 RomanNumerals.java 1366 1 3 0 +UnitTestCaseAction 1475844613820 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475844613822 TestRomanNumerals.java FAIL +EditAction 1475844622614 RomanNumerals.java 1364 1 6 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 51a1f1a..3afb570 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -36,7 +36,7 @@ public int convertToInteger(String romanNum) { convertedInteger += 100; break; } - + } if (romanNum.contains("IV")){ convertedInteger -= 2; @@ -49,7 +49,6 @@ public int convertToInteger(String romanNum) { convertedInteger -= 10; } - } return convertedInteger; From 9560de04b2f3bc286150f8268eb17fd72fcff4c2 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:53:49 +0300 Subject: [PATCH 087/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 5 +++++ src/RomanNumerals.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 88fe28f..72266f2 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -310,3 +310,8 @@ EditAction 1475844611750 RomanNumerals.java 1366 1 3 0 UnitTestCaseAction 1475844613820 TestRomanNumerals.java FAIL UnitTestSessionAction 1475844613822 TestRomanNumerals.java FAIL EditAction 1475844622614 RomanNumerals.java 1364 1 6 0 +UnitTestCaseAction 1475844625254 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475844625255 TestRomanNumerals.java FAIL +UnitTestCaseAction 1475844729708 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475844729709 TestRomanNumerals.java FAIL +EditAction 1475844829053 RomanNumerals.java 1364 1 6 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 3afb570..0776087 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -47,7 +47,7 @@ public int convertToInteger(String romanNum) { } if (romanNum.contains("XC")){ - convertedInteger -= 10; + convertedInteger -= 20; } From d4630521d6d80ea184aae516716695db48aa677c Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:54:17 +0300 Subject: [PATCH 088/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 5 ++++ .../20161007144331704/besouroEpisodes.txt | 24 +++++++++++++++++++ .../randomHeuristicEpisodes.txt | 1 + .besouro/20161007144331704/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 7 ++++++ 5 files changed, 38 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 72266f2..9aa73f3 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -315,3 +315,8 @@ UnitTestSessionAction 1475844625255 TestRomanNumerals.java FAIL UnitTestCaseAction 1475844729708 TestRomanNumerals.java FAIL UnitTestSessionAction 1475844729709 TestRomanNumerals.java FAIL EditAction 1475844829053 RomanNumerals.java 1364 1 6 0 +UnitTestCaseAction 1475844832286 TestRomanNumerals.java OK +UnitTestSessionAction 1475844832287 TestRomanNumerals.java OK +RefactoringAction 1475844847151 TestRomanNumerals.java ADD void testRomanNumberals_Ninety()/2 METHOD +RefactoringAction 1475844854666 TestRomanNumerals.java RENAME testRomanNumberals_Ninety()/2=>void testRomanNumberals_h() METHOD +EditAction 1475844857287 TestRomanNumerals.java 2851 20 39 20 diff --git a/.besouro/20161007144331704/besouroEpisodes.txt b/.besouro/20161007144331704/besouroEpisodes.txt index abd43b4..1fdad84 100644 --- a/.besouro/20161007144331704/besouroEpisodes.txt +++ b/.besouro/20161007144331704/besouroEpisodes.txt @@ -27,3 +27,27 @@ 1475844375632 test-addition 1 8 true 1475844428152 test-first 3 47 true 1475844428153 test-first 3 47 true +1475844832287 test-first 3 393 true +1475844832288 test-first 3 393 true +1475844832289 test-first 3 393 true +1475844832290 test-first 3 393 true +1475844832291 test-first 3 393 true +1475844832292 test-first 3 393 true +1475844832293 test-first 3 393 true +1475844832294 test-first 3 393 true +1475844832295 test-first 3 393 true +1475844832296 test-first 3 393 true +1475844832297 test-first 3 393 true +1475844832298 test-first 3 393 true +1475844832299 test-first 3 393 true +1475844832300 test-first 3 393 true +1475844832301 test-first 3 393 true +1475844832302 test-first 3 393 true +1475844832303 test-first 3 393 true +1475844832304 test-first 3 393 true +1475844832305 test-first 3 393 true +1475844832306 test-first 3 393 true +1475844832307 test-first 3 393 true +1475844832308 test-first 3 393 true +1475844832309 test-first 3 393 true +1475844832310 test-first 3 393 true diff --git a/.besouro/20161007144331704/randomHeuristicEpisodes.txt b/.besouro/20161007144331704/randomHeuristicEpisodes.txt index cc4a20e..ac02c73 100644 --- a/.besouro/20161007144331704/randomHeuristicEpisodes.txt +++ b/.besouro/20161007144331704/randomHeuristicEpisodes.txt @@ -10,3 +10,4 @@ 1475844360720 test-addition 1 11 true 1475844375631 test-addition 1 8 false 1475844428152 test-first 3 47 true +1475844832287 test-first 3 393 true diff --git a/.besouro/20161007144331704/zorroEpisodes.txt b/.besouro/20161007144331704/zorroEpisodes.txt index ef65c5c..bef1c95 100644 --- a/.besouro/20161007144331704/zorroEpisodes.txt +++ b/.besouro/20161007144331704/zorroEpisodes.txt @@ -10,3 +10,4 @@ 1475844360720 test-addition 1 24 true 1475844375631 test-addition 1 14 true 1475844428152 test-first 3 52 true +1475844832287 test-first 3 404 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 0802963..b532cdf 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -140,6 +140,13 @@ public void testRomanNumberals_Ninety() { assertEquals(90, integer); } + @Test + public void testRomanNumberals_Hundred() { + + int integer = test.convertToInteger("XC"); + assertEquals(90, integer); + + } From d33c980554f1dbda0b77745d7cb4eba758baabf4 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:54:30 +0300 Subject: [PATCH 089/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 2 ++ tests/TestRomanNumerals.java | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 9aa73f3..d1191a8 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -320,3 +320,5 @@ UnitTestSessionAction 1475844832287 TestRomanNumerals.java OK RefactoringAction 1475844847151 TestRomanNumerals.java ADD void testRomanNumberals_Ninety()/2 METHOD RefactoringAction 1475844854666 TestRomanNumerals.java RENAME testRomanNumberals_Ninety()/2=>void testRomanNumberals_h() METHOD EditAction 1475844857287 TestRomanNumerals.java 2851 20 39 20 +CompilationAction 1475844858519 TestRomanNumerals.java +EditAction 1475844869580 TestRomanNumerals.java 2851 20 39 20 diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index b532cdf..4a48845 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -143,8 +143,8 @@ public void testRomanNumberals_Ninety() { @Test public void testRomanNumberals_Hundred() { - int integer = test.convertToInteger("XC"); - assertEquals(90, integer); + int integer = test.convertToInteger("C"); + assertEquals(100, integer); } From aa9be711ca3c79c5fb2986954c7861e1ac52c8b7 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:55:14 +0300 Subject: [PATCH 090/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 8 ++++++++ tests/TestRomanNumerals.java | 13 ++++++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index d1191a8..dcf3846 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -322,3 +322,11 @@ RefactoringAction 1475844854666 TestRomanNumerals.java RENAME testRomanNumberals EditAction 1475844857287 TestRomanNumerals.java 2851 20 39 20 CompilationAction 1475844858519 TestRomanNumerals.java EditAction 1475844869580 TestRomanNumerals.java 2851 20 39 20 +CompilationAction 1475844870887 TestRomanNumerals.java +RefactoringAction 1475844885750 TestRomanNumerals.java RENAME testRomanNumberals_Hundred()/2=>void testRomanNumberals_TwoHundred() METHOD +CompilationAction 1475844886226 TestRomanNumerals.java +UnitTestCaseAction 1475844887833 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475844887834 TestRomanNumerals.java FAIL +RefactoringAction 1475844896790 TestRomanNumerals.java ADD void testRomanNumberals_TwoHundred()/2 METHOD +RefactoringAction 1475844901804 TestRomanNumerals.java RENAME testRomanNumberals_TwoHundred()/2=>void testRomanNumberals_TwoHundredThirtySeven() METHOD +EditAction 1475844914109 TestRomanNumerals.java 3008 21 41 21 diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 4a48845..443b8e8 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -141,10 +141,17 @@ public void testRomanNumberals_Ninety() { } @Test - public void testRomanNumberals_Hundred() { + public void testRomanNumberals_TwoHundred() { - int integer = test.convertToInteger("C"); - assertEquals(100, integer); + int integer = test.convertToInteger("CC"); + assertEquals(200, integer); + + } + @Test + public void testRomanNumberals_TwoHundredThirtySeven() { + + int integer = test.convertToInteger("CCXXXVII"); + assertEquals(200, integer); } From 4006508372df8785f89d3ff2c262839b60b036f3 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:55:18 +0300 Subject: [PATCH 091/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 1 + tests/TestRomanNumerals.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index dcf3846..e69e6d9 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -330,3 +330,4 @@ UnitTestSessionAction 1475844887834 TestRomanNumerals.java FAIL RefactoringAction 1475844896790 TestRomanNumerals.java ADD void testRomanNumberals_TwoHundred()/2 METHOD RefactoringAction 1475844901804 TestRomanNumerals.java RENAME testRomanNumberals_TwoHundred()/2=>void testRomanNumberals_TwoHundredThirtySeven() METHOD EditAction 1475844914109 TestRomanNumerals.java 3008 21 41 21 +EditAction 1475844918230 TestRomanNumerals.java 3008 21 41 21 diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 443b8e8..5559336 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -151,7 +151,7 @@ public void testRomanNumberals_TwoHundred() { public void testRomanNumberals_TwoHundredThirtySeven() { int integer = test.convertToInteger("CCXXXVII"); - assertEquals(200, integer); + assertEquals(237, integer); } From d142ea1e9d399656c186a7ec6e22b29a852d5336 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:55:48 +0300 Subject: [PATCH 092/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 6 ++++++ .besouro/20161007144331704/besouroEpisodes.txt | 6 ++++++ .besouro/20161007144331704/randomHeuristicEpisodes.txt | 1 + .besouro/20161007144331704/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 7 +++++++ 5 files changed, 21 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index e69e6d9..33d5374 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -331,3 +331,9 @@ RefactoringAction 1475844896790 TestRomanNumerals.java ADD void testRomanNumbera RefactoringAction 1475844901804 TestRomanNumerals.java RENAME testRomanNumberals_TwoHundred()/2=>void testRomanNumberals_TwoHundredThirtySeven() METHOD EditAction 1475844914109 TestRomanNumerals.java 3008 21 41 21 EditAction 1475844918230 TestRomanNumerals.java 3008 21 41 21 +UnitTestCaseAction 1475844921585 TestRomanNumerals.java OK +UnitTestSessionAction 1475844921586 TestRomanNumerals.java OK +RefactoringAction 1475844931846 TestRomanNumerals.java ADD void testRomanNumberals_TwoHundredThirtySeven()/2 METHOD +RefactoringAction 1475844935372 TestRomanNumerals.java RENAME testRomanNumberals_TwoHundredThirtySeven()/2=>void testRomanNumberals_Fourn() METHOD +RefactoringAction 1475844937387 TestRomanNumerals.java RENAME testRomanNumberals_Fourn()=>void testRomanNumberals_FourHundred() METHOD +EditAction 1475844948354 TestRomanNumerals.java 3146 22 41 21 diff --git a/.besouro/20161007144331704/besouroEpisodes.txt b/.besouro/20161007144331704/besouroEpisodes.txt index 1fdad84..4469ff3 100644 --- a/.besouro/20161007144331704/besouroEpisodes.txt +++ b/.besouro/20161007144331704/besouroEpisodes.txt @@ -51,3 +51,9 @@ 1475844832308 test-first 3 393 true 1475844832309 test-first 3 393 true 1475844832310 test-first 3 393 true +1475844921586 test-addition 2 74 true +1475844921587 test-addition 1 74 true +1475844921588 test-addition 2 74 true +1475844921589 test-addition 1 74 true +1475844921590 test-addition 1 74 true +1475844921591 test-addition 1 74 true diff --git a/.besouro/20161007144331704/randomHeuristicEpisodes.txt b/.besouro/20161007144331704/randomHeuristicEpisodes.txt index ac02c73..e96456a 100644 --- a/.besouro/20161007144331704/randomHeuristicEpisodes.txt +++ b/.besouro/20161007144331704/randomHeuristicEpisodes.txt @@ -11,3 +11,4 @@ 1475844375631 test-addition 1 8 false 1475844428152 test-first 3 47 true 1475844832287 test-first 3 393 true +1475844921586 test-addition 2 74 true diff --git a/.besouro/20161007144331704/zorroEpisodes.txt b/.besouro/20161007144331704/zorroEpisodes.txt index bef1c95..a3d5d67 100644 --- a/.besouro/20161007144331704/zorroEpisodes.txt +++ b/.besouro/20161007144331704/zorroEpisodes.txt @@ -11,3 +11,4 @@ 1475844375631 test-addition 1 14 true 1475844428152 test-first 3 52 true 1475844832287 test-first 3 404 true +1475844921586 test-addition 2 89 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 5559336..8a33169 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -154,6 +154,13 @@ public void testRomanNumberals_TwoHundredThirtySeven() { assertEquals(237, integer); } + @Test + public void testRomanNumberals_FourHundred() { + + int integer = test.convertToInteger("CD"); + assertEquals(400), integer); + + } From a487ecfeafe4dffa61ceadcbbd87e67722e342fe Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:56:14 +0300 Subject: [PATCH 093/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 5 +++++ src/RomanNumerals.java | 4 ++++ tests/TestRomanNumerals.java | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 33d5374..350dd75 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -337,3 +337,8 @@ RefactoringAction 1475844931846 TestRomanNumerals.java ADD void testRomanNumbera RefactoringAction 1475844935372 TestRomanNumerals.java RENAME testRomanNumberals_TwoHundredThirtySeven()/2=>void testRomanNumberals_Fourn() METHOD RefactoringAction 1475844937387 TestRomanNumerals.java RENAME testRomanNumberals_Fourn()=>void testRomanNumberals_FourHundred() METHOD EditAction 1475844948354 TestRomanNumerals.java 3146 22 41 21 +CompilationAction 1475844949461 TestRomanNumerals.java +CompilationAction 1475844957686 TestRomanNumerals.java +UnitTestCaseAction 1475844959264 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475844959265 TestRomanNumerals.java FAIL +EditAction 1475844973762 RomanNumerals.java 1420 1 0 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 0776087..298ab87 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -36,6 +36,10 @@ public int convertToInteger(String romanNum) { convertedInteger += 100; break; } + case 'C': + convertedInteger += 500; + break; + } } if (romanNum.contains("IV")){ diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 8a33169..a544a47 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -158,7 +158,7 @@ public void testRomanNumberals_TwoHundredThirtySeven() { public void testRomanNumberals_FourHundred() { int integer = test.convertToInteger("CD"); - assertEquals(400), integer); + assertEquals(400, integer); } From d33919365c7c32ac1d350dad0a4ee403da93d29b Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:56:29 +0300 Subject: [PATCH 094/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 7 +++++++ src/RomanNumerals.java | 7 +++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 350dd75..8336b74 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -342,3 +342,10 @@ CompilationAction 1475844957686 TestRomanNumerals.java UnitTestCaseAction 1475844959264 TestRomanNumerals.java FAIL UnitTestSessionAction 1475844959265 TestRomanNumerals.java FAIL EditAction 1475844973762 RomanNumerals.java 1420 1 0 0 +CompilationAction 1475844975871 RomanNumerals.java +CompilationAction 1475844975872 RomanNumerals.java +CompilationAction 1475844975873 RomanNumerals.java +CompilationAction 1475844986131 RomanNumerals.java +CompilationAction 1475844986549 RomanNumerals.java +CompilationAction 1475844986551 RomanNumerals.java +EditAction 1475844989060 RomanNumerals.java 1483 1 0 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 298ab87..82943e1 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -36,10 +36,9 @@ public int convertToInteger(String romanNum) { convertedInteger += 100; break; } - case 'C': + case 'D': convertedInteger += 500; break; - } } if (romanNum.contains("IV")){ @@ -53,6 +52,10 @@ public int convertToInteger(String romanNum) { convertedInteger -= 20; } + if (romanNum.contains("XC")){ + + convertedInteger -= 20; + } return convertedInteger; From 121414a5508a12fc674a15a83baeb16bbb5bbb30 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:56:50 +0300 Subject: [PATCH 095/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 5 +++++ src/RomanNumerals.java | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 8336b74..48f0ab6 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -349,3 +349,8 @@ CompilationAction 1475844986131 RomanNumerals.java CompilationAction 1475844986549 RomanNumerals.java CompilationAction 1475844986551 RomanNumerals.java EditAction 1475844989060 RomanNumerals.java 1483 1 0 0 +CompilationAction 1475844990203 RomanNumerals.java +CompilationAction 1475844990204 RomanNumerals.java +CompilationAction 1475844998556 RomanNumerals.java +CompilationAction 1475844998558 RomanNumerals.java +EditAction 1475845009992 RomanNumerals.java 1488 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 82943e1..4d8988c 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -35,10 +35,11 @@ public int convertToInteger(String romanNum) { case 'C': convertedInteger += 100; break; - } + case 'D': convertedInteger += 500; break; + } } if (romanNum.contains("IV")){ @@ -52,9 +53,9 @@ public int convertToInteger(String romanNum) { convertedInteger -= 20; } - if (romanNum.contains("XC")){ + if (romanNum.contains("CD")){ - convertedInteger -= 20; + convertedInteger -= 100; } From 860ab2c3f6cdd1771362fb911c176d0446233490 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:56:55 +0300 Subject: [PATCH 096/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 48f0ab6..bc3d93b 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -354,3 +354,6 @@ CompilationAction 1475844990204 RomanNumerals.java CompilationAction 1475844998556 RomanNumerals.java CompilationAction 1475844998558 RomanNumerals.java EditAction 1475845009992 RomanNumerals.java 1488 1 7 0 +UnitTestCaseAction 1475845011979 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475845011980 TestRomanNumerals.java FAIL +EditAction 1475845015097 RomanNumerals.java 1488 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 4d8988c..56a484e 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -55,7 +55,7 @@ public int convertToInteger(String romanNum) { } if (romanNum.contains("CD")){ - convertedInteger -= 100; + convertedInteger -= 200; } From 10edba2fb7d683cd3c40f15e2548e0b534f427be Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:57:26 +0300 Subject: [PATCH 097/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 5 +++++ .besouro/20161007144331704/besouroEpisodes.txt | 18 ++++++++++++++++++ .../randomHeuristicEpisodes.txt | 1 + .besouro/20161007144331704/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 7 +++++++ 5 files changed, 32 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index bc3d93b..b810877 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -357,3 +357,8 @@ EditAction 1475845009992 RomanNumerals.java 1488 1 7 0 UnitTestCaseAction 1475845011979 TestRomanNumerals.java FAIL UnitTestSessionAction 1475845011980 TestRomanNumerals.java FAIL EditAction 1475845015097 RomanNumerals.java 1488 1 7 0 +UnitTestCaseAction 1475845017186 TestRomanNumerals.java OK +UnitTestSessionAction 1475845017187 TestRomanNumerals.java OK +RefactoringAction 1475845032975 TestRomanNumerals.java ADD void testRomanNumberals_FourHundred()/2 METHOD +RefactoringAction 1475845040489 TestRomanNumerals.java RENAME testRomanNumberals_FourHundred()/2=>void testRomanNumberals_FiveHundred() METHOD +EditAction 1475845046398 TestRomanNumerals.java 3281 23 45 23 diff --git a/.besouro/20161007144331704/besouroEpisodes.txt b/.besouro/20161007144331704/besouroEpisodes.txt index 4469ff3..c650037 100644 --- a/.besouro/20161007144331704/besouroEpisodes.txt +++ b/.besouro/20161007144331704/besouroEpisodes.txt @@ -57,3 +57,21 @@ 1475844921589 test-addition 1 74 true 1475844921590 test-addition 1 74 true 1475844921591 test-addition 1 74 true +1475845017187 test-first 1 85 true +1475845017188 test-first 1 85 true +1475845017189 test-first 1 85 true +1475845017190 test-first 1 85 true +1475845017191 test-first 1 85 true +1475845017192 test-first 1 85 true +1475845017193 test-first 1 85 true +1475845017194 test-first 1 85 true +1475845017195 test-first 1 85 true +1475845017196 test-first 1 85 true +1475845017197 test-first 1 85 true +1475845017198 test-first 1 85 true +1475845017199 test-first 1 85 true +1475845017200 test-first 1 85 true +1475845017201 test-first 1 85 true +1475845017202 test-first 1 85 true +1475845017203 test-first 1 85 true +1475845017204 test-first 1 85 true diff --git a/.besouro/20161007144331704/randomHeuristicEpisodes.txt b/.besouro/20161007144331704/randomHeuristicEpisodes.txt index e96456a..4214615 100644 --- a/.besouro/20161007144331704/randomHeuristicEpisodes.txt +++ b/.besouro/20161007144331704/randomHeuristicEpisodes.txt @@ -12,3 +12,4 @@ 1475844428152 test-first 3 47 true 1475844832287 test-first 3 393 true 1475844921586 test-addition 2 74 true +1475845017187 test-first 1 85 true diff --git a/.besouro/20161007144331704/zorroEpisodes.txt b/.besouro/20161007144331704/zorroEpisodes.txt index a3d5d67..e29c6fd 100644 --- a/.besouro/20161007144331704/zorroEpisodes.txt +++ b/.besouro/20161007144331704/zorroEpisodes.txt @@ -12,3 +12,4 @@ 1475844428152 test-first 3 52 true 1475844832287 test-first 3 404 true 1475844921586 test-addition 2 89 true +1475845017187 test-first 1 95 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index a544a47..bfe26bf 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -161,6 +161,13 @@ public void testRomanNumberals_FourHundred() { assertEquals(400, integer); } + @Test + public void testRomanNumberals_FiveHundred() { + + int integer = test.convertToInteger("D"); + assertEquals(500, integer); + + } From c35e41a315c2b122047e939637e0ca1a1b2467d9 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:57:45 +0300 Subject: [PATCH 098/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 5 +++++ .besouro/20161007144331704/besouroEpisodes.txt | 2 ++ .besouro/20161007144331704/randomHeuristicEpisodes.txt | 1 + .besouro/20161007144331704/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 7 +++++++ 5 files changed, 16 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index b810877..d41ad77 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -362,3 +362,8 @@ UnitTestSessionAction 1475845017187 TestRomanNumerals.java OK RefactoringAction 1475845032975 TestRomanNumerals.java ADD void testRomanNumberals_FourHundred()/2 METHOD RefactoringAction 1475845040489 TestRomanNumerals.java RENAME testRomanNumberals_FourHundred()/2=>void testRomanNumberals_FiveHundred() METHOD EditAction 1475845046398 TestRomanNumerals.java 3281 23 45 23 +UnitTestCaseAction 1475845048491 TestRomanNumerals.java OK +UnitTestSessionAction 1475845048492 TestRomanNumerals.java OK +RefactoringAction 1475845058519 TestRomanNumerals.java ADD void testRomanNumberals_FiveHundred()/2 METHOD +RefactoringAction 1475845062535 TestRomanNumerals.java RENAME testRomanNumberals_FiveHundred()/2=>void testRomanNumberals_SixHundred() METHOD +EditAction 1475845064989 TestRomanNumerals.java 3417 24 47 24 diff --git a/.besouro/20161007144331704/besouroEpisodes.txt b/.besouro/20161007144331704/besouroEpisodes.txt index c650037..76de111 100644 --- a/.besouro/20161007144331704/besouroEpisodes.txt +++ b/.besouro/20161007144331704/besouroEpisodes.txt @@ -75,3 +75,5 @@ 1475845017202 test-first 1 85 true 1475845017203 test-first 1 85 true 1475845017204 test-first 1 85 true +1475845048492 test-addition 1 15 true +1475845048493 test-addition 1 15 true diff --git a/.besouro/20161007144331704/randomHeuristicEpisodes.txt b/.besouro/20161007144331704/randomHeuristicEpisodes.txt index 4214615..d8dc643 100644 --- a/.besouro/20161007144331704/randomHeuristicEpisodes.txt +++ b/.besouro/20161007144331704/randomHeuristicEpisodes.txt @@ -13,3 +13,4 @@ 1475844832287 test-first 3 393 true 1475844921586 test-addition 2 74 true 1475845017187 test-first 1 85 true +1475845048492 test-addition 1 15 false diff --git a/.besouro/20161007144331704/zorroEpisodes.txt b/.besouro/20161007144331704/zorroEpisodes.txt index e29c6fd..0561ea1 100644 --- a/.besouro/20161007144331704/zorroEpisodes.txt +++ b/.besouro/20161007144331704/zorroEpisodes.txt @@ -13,3 +13,4 @@ 1475844832287 test-first 3 404 true 1475844921586 test-addition 2 89 true 1475845017187 test-first 1 95 true +1475845048492 test-addition 1 31 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index bfe26bf..15149a1 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -168,6 +168,13 @@ public void testRomanNumberals_FiveHundred() { assertEquals(500, integer); } + @Test + public void testRomanNumberals_SixHundred() { + + int integer = test.convertToInteger("DC"); + assertEquals(500, integer); + + } From 932122809efd7faf65c0e677e7d96a7b1911b1f8 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:57:48 +0300 Subject: [PATCH 099/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 1 + tests/TestRomanNumerals.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index d41ad77..fecfdce 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -367,3 +367,4 @@ UnitTestSessionAction 1475845048492 TestRomanNumerals.java OK RefactoringAction 1475845058519 TestRomanNumerals.java ADD void testRomanNumberals_FiveHundred()/2 METHOD RefactoringAction 1475845062535 TestRomanNumerals.java RENAME testRomanNumberals_FiveHundred()/2=>void testRomanNumberals_SixHundred() METHOD EditAction 1475845064989 TestRomanNumerals.java 3417 24 47 24 +EditAction 1475845068404 TestRomanNumerals.java 3417 24 47 24 diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 15149a1..1b821fb 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -172,7 +172,7 @@ public void testRomanNumberals_FiveHundred() { public void testRomanNumberals_SixHundred() { int integer = test.convertToInteger("DC"); - assertEquals(500, integer); + assertEquals(600, integer); } From 7dd9620e2276f4bffbee7115a85119d9e9857860 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:58:08 +0300 Subject: [PATCH 100/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 6 ++++++ .besouro/20161007144331704/besouroEpisodes.txt | 2 ++ .besouro/20161007144331704/randomHeuristicEpisodes.txt | 1 + .besouro/20161007144331704/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 7 +++++++ 5 files changed, 17 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index fecfdce..a7f95ef 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -368,3 +368,9 @@ RefactoringAction 1475845058519 TestRomanNumerals.java ADD void testRomanNumbera RefactoringAction 1475845062535 TestRomanNumerals.java RENAME testRomanNumberals_FiveHundred()/2=>void testRomanNumberals_SixHundred() METHOD EditAction 1475845064989 TestRomanNumerals.java 3417 24 47 24 EditAction 1475845068404 TestRomanNumerals.java 3417 24 47 24 +UnitTestCaseAction 1475845070699 TestRomanNumerals.java OK +UnitTestSessionAction 1475845070700 TestRomanNumerals.java OK +RefactoringAction 1475845076074 TestRomanNumerals.java ADD void testRomanNumberals_SixHundred()/2 METHOD +RefactoringAction 1475845082100 TestRomanNumerals.java RENAME testRomanNumberals_SixHundred()/2=>void testRomanNumberals_EHundred() METHOD +RefactoringAction 1475845083114 TestRomanNumerals.java RENAME testRomanNumberals_EHundred()=>void testRomanNumberals_EightHundred() METHOD +EditAction 1475845088518 TestRomanNumerals.java 3558 25 49 25 diff --git a/.besouro/20161007144331704/besouroEpisodes.txt b/.besouro/20161007144331704/besouroEpisodes.txt index 76de111..805de38 100644 --- a/.besouro/20161007144331704/besouroEpisodes.txt +++ b/.besouro/20161007144331704/besouroEpisodes.txt @@ -77,3 +77,5 @@ 1475845017204 test-first 1 85 true 1475845048492 test-addition 1 15 true 1475845048493 test-addition 1 15 true +1475845070700 test-addition 1 12 true +1475845070701 test-addition 1 12 true diff --git a/.besouro/20161007144331704/randomHeuristicEpisodes.txt b/.besouro/20161007144331704/randomHeuristicEpisodes.txt index d8dc643..e6458c7 100644 --- a/.besouro/20161007144331704/randomHeuristicEpisodes.txt +++ b/.besouro/20161007144331704/randomHeuristicEpisodes.txt @@ -14,3 +14,4 @@ 1475844921586 test-addition 2 74 true 1475845017187 test-first 1 85 true 1475845048492 test-addition 1 15 false +1475845070700 test-addition 1 12 true diff --git a/.besouro/20161007144331704/zorroEpisodes.txt b/.besouro/20161007144331704/zorroEpisodes.txt index 0561ea1..06e104e 100644 --- a/.besouro/20161007144331704/zorroEpisodes.txt +++ b/.besouro/20161007144331704/zorroEpisodes.txt @@ -14,3 +14,4 @@ 1475844921586 test-addition 2 89 true 1475845017187 test-first 1 95 true 1475845048492 test-addition 1 31 true +1475845070700 test-addition 1 22 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 1b821fb..12cd901 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -175,6 +175,13 @@ public void testRomanNumberals_SixHundred() { assertEquals(600, integer); } + @Test + public void testRomanNumberals_EightHundred() { + + int integer = test.convertToInteger("DCCC"); + assertEquals(800, integer); + + } From 4808cafc3190b7829715bb9f5215dc3fbfa9fbd6 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:58:29 +0300 Subject: [PATCH 101/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 5 +++++ .besouro/20161007144331704/besouroEpisodes.txt | 2 ++ .besouro/20161007144331704/randomHeuristicEpisodes.txt | 1 + .besouro/20161007144331704/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 8 +++++++- 5 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index a7f95ef..249835e 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -374,3 +374,8 @@ RefactoringAction 1475845076074 TestRomanNumerals.java ADD void testRomanNumbera RefactoringAction 1475845082100 TestRomanNumerals.java RENAME testRomanNumberals_SixHundred()/2=>void testRomanNumberals_EHundred() METHOD RefactoringAction 1475845083114 TestRomanNumerals.java RENAME testRomanNumberals_EHundred()=>void testRomanNumberals_EightHundred() METHOD EditAction 1475845088518 TestRomanNumerals.java 3558 25 49 25 +UnitTestCaseAction 1475845091395 TestRomanNumerals.java OK +UnitTestSessionAction 1475845091396 TestRomanNumerals.java OK +RefactoringAction 1475845096651 TestRomanNumerals.java ADD void testRomanNumberals_EightHundred()/2 METHOD +RefactoringAction 1475845102664 TestRomanNumerals.java RENAME testRomanNumberals_EightHundred()/2=>void testRomanNumberals_Thousand() METHOD +EditAction 1475845109537 TestRomanNumerals.java 3691 26 51 26 diff --git a/.besouro/20161007144331704/besouroEpisodes.txt b/.besouro/20161007144331704/besouroEpisodes.txt index 805de38..30c4aaa 100644 --- a/.besouro/20161007144331704/besouroEpisodes.txt +++ b/.besouro/20161007144331704/besouroEpisodes.txt @@ -79,3 +79,5 @@ 1475845048493 test-addition 1 15 true 1475845070700 test-addition 1 12 true 1475845070701 test-addition 1 12 true +1475845091396 test-addition 1 15 true +1475845091397 test-addition 1 15 true diff --git a/.besouro/20161007144331704/randomHeuristicEpisodes.txt b/.besouro/20161007144331704/randomHeuristicEpisodes.txt index e6458c7..6103ba7 100644 --- a/.besouro/20161007144331704/randomHeuristicEpisodes.txt +++ b/.besouro/20161007144331704/randomHeuristicEpisodes.txt @@ -15,3 +15,4 @@ 1475845017187 test-first 1 85 true 1475845048492 test-addition 1 15 false 1475845070700 test-addition 1 12 true +1475845091396 test-addition 1 15 false diff --git a/.besouro/20161007144331704/zorroEpisodes.txt b/.besouro/20161007144331704/zorroEpisodes.txt index 06e104e..377e1ef 100644 --- a/.besouro/20161007144331704/zorroEpisodes.txt +++ b/.besouro/20161007144331704/zorroEpisodes.txt @@ -15,3 +15,4 @@ 1475845017187 test-first 1 95 true 1475845048492 test-addition 1 31 true 1475845070700 test-addition 1 22 true +1475845091396 test-addition 1 20 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 12cd901..207171d 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -182,7 +182,13 @@ public void testRomanNumberals_EightHundred() { assertEquals(800, integer); } - + @Test + public void testRomanNumberals_Thousand() { + + int integer = test.convertToInteger("M"); + assertEquals(1000, integer); + + } From 1a2feffae3fc0d9cac003152e3c6fb18192f363f Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:58:47 +0300 Subject: [PATCH 102/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 249835e..0e45bf5 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -379,3 +379,6 @@ UnitTestSessionAction 1475845091396 TestRomanNumerals.java OK RefactoringAction 1475845096651 TestRomanNumerals.java ADD void testRomanNumberals_EightHundred()/2 METHOD RefactoringAction 1475845102664 TestRomanNumerals.java RENAME testRomanNumberals_EightHundred()/2=>void testRomanNumberals_Thousand() METHOD EditAction 1475845109537 TestRomanNumerals.java 3691 26 51 26 +UnitTestCaseAction 1475845111648 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475845111649 TestRomanNumerals.java FAIL +EditAction 1475845127153 RomanNumerals.java 1544 1 0 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 56a484e..4c759ae 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -40,6 +40,10 @@ public int convertToInteger(String romanNum) { convertedInteger += 500; break; } + case 'M': + convertedInteger += 500; + break; + } } if (romanNum.contains("IV")){ From f71f45d2f0457290459f28883c9af0ad2b1d3d0c Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:59:21 +0300 Subject: [PATCH 103/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 14 ++++++++++++++ .besouro/20161007144331704/besouroEpisodes.txt | 2 ++ .../20161007144331704/randomHeuristicEpisodes.txt | 1 + .besouro/20161007144331704/zorroEpisodes.txt | 1 + src/RomanNumerals.java | 6 +++--- tests/TestRomanNumerals.java | 7 +++++++ 6 files changed, 28 insertions(+), 3 deletions(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 0e45bf5..c814224 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -382,3 +382,17 @@ EditAction 1475845109537 TestRomanNumerals.java 3691 26 51 26 UnitTestCaseAction 1475845111648 TestRomanNumerals.java FAIL UnitTestSessionAction 1475845111649 TestRomanNumerals.java FAIL EditAction 1475845127153 RomanNumerals.java 1544 1 0 0 +CompilationAction 1475845128337 RomanNumerals.java +CompilationAction 1475845128338 RomanNumerals.java +CompilationAction 1475845128340 RomanNumerals.java +CompilationAction 1475845130416 RomanNumerals.java +CompilationAction 1475845130573 RomanNumerals.java +CompilationAction 1475845130575 RomanNumerals.java +CompilationAction 1475845130576 RomanNumerals.java +CompilationAction 1475845139144 RomanNumerals.java +CompilationAction 1475845139146 RomanNumerals.java +UnitTestCaseAction 1475845140659 TestRomanNumerals.java OK +UnitTestSessionAction 1475845140660 TestRomanNumerals.java OK +RefactoringAction 1475845150714 TestRomanNumerals.java ADD void testRomanNumberals_Thousand()/2 METHOD +RefactoringAction 1475845156230 TestRomanNumerals.java RENAME testRomanNumberals_Thousand()/2=>void testRomanNumberals_NineHundred() METHOD +EditAction 1475845161125 TestRomanNumerals.java 3829 27 53 27 diff --git a/.besouro/20161007144331704/besouroEpisodes.txt b/.besouro/20161007144331704/besouroEpisodes.txt index 30c4aaa..27daa0c 100644 --- a/.besouro/20161007144331704/besouroEpisodes.txt +++ b/.besouro/20161007144331704/besouroEpisodes.txt @@ -81,3 +81,5 @@ 1475845070701 test-addition 1 12 true 1475845091396 test-addition 1 15 true 1475845091397 test-addition 1 15 true +1475845140660 test-first 3 44 true +1475845140661 test-first 3 44 true diff --git a/.besouro/20161007144331704/randomHeuristicEpisodes.txt b/.besouro/20161007144331704/randomHeuristicEpisodes.txt index 6103ba7..69353aa 100644 --- a/.besouro/20161007144331704/randomHeuristicEpisodes.txt +++ b/.besouro/20161007144331704/randomHeuristicEpisodes.txt @@ -16,3 +16,4 @@ 1475845048492 test-addition 1 15 false 1475845070700 test-addition 1 12 true 1475845091396 test-addition 1 15 false +1475845140660 test-first 3 44 true diff --git a/.besouro/20161007144331704/zorroEpisodes.txt b/.besouro/20161007144331704/zorroEpisodes.txt index 377e1ef..8acd6d8 100644 --- a/.besouro/20161007144331704/zorroEpisodes.txt +++ b/.besouro/20161007144331704/zorroEpisodes.txt @@ -16,3 +16,4 @@ 1475845048492 test-addition 1 31 true 1475845070700 test-addition 1 22 true 1475845091396 test-addition 1 20 true +1475845140660 test-first 3 49 true diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 4c759ae..11a181c 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -39,11 +39,11 @@ public int convertToInteger(String romanNum) { case 'D': convertedInteger += 500; break; - } + case 'M': - convertedInteger += 500; + convertedInteger += 1000; break; - } + } } if (romanNum.contains("IV")){ diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 207171d..67159c1 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -189,6 +189,13 @@ public void testRomanNumberals_Thousand() { assertEquals(1000, integer); } + @Test + public void testRomanNumberals_NineHundred() { + + int integer = test.convertToInteger("CM"); + assertEquals(900, integer); + + } From 06f7dfeb44e60a19c79b20cc110c56e8977eba65 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 15:59:32 +0300 Subject: [PATCH 104/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 3 +++ src/RomanNumerals.java | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index c814224..c3d4e4f 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -396,3 +396,6 @@ UnitTestSessionAction 1475845140660 TestRomanNumerals.java OK RefactoringAction 1475845150714 TestRomanNumerals.java ADD void testRomanNumberals_Thousand()/2 METHOD RefactoringAction 1475845156230 TestRomanNumerals.java RENAME testRomanNumberals_Thousand()/2=>void testRomanNumberals_NineHundred() METHOD EditAction 1475845161125 TestRomanNumerals.java 3829 27 53 27 +UnitTestCaseAction 1475845163076 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475845163077 TestRomanNumerals.java FAIL +EditAction 1475845172091 RomanNumerals.java 1618 1 8 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 11a181c..a376b4b 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -61,6 +61,11 @@ public int convertToInteger(String romanNum) { convertedInteger -= 200; } + if (romanNum.contains("CM")){ + + convertedInteger -= 200; + } + return convertedInteger; From 811025d6f309b54fa4a469283a4a14251d6b2e94 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 16:00:14 +0300 Subject: [PATCH 105/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 7 +++++++ .besouro/20161007144331704/besouroEpisodes.txt | 2 ++ .besouro/20161007144331704/randomHeuristicEpisodes.txt | 1 + .besouro/20161007144331704/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 7 +++++++ 5 files changed, 18 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index c3d4e4f..736240f 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -399,3 +399,10 @@ EditAction 1475845161125 TestRomanNumerals.java 3829 27 53 27 UnitTestCaseAction 1475845163076 TestRomanNumerals.java FAIL UnitTestSessionAction 1475845163077 TestRomanNumerals.java FAIL EditAction 1475845172091 RomanNumerals.java 1618 1 8 0 +UnitTestCaseAction 1475845176831 TestRomanNumerals.java OK +UnitTestSessionAction 1475845176832 TestRomanNumerals.java OK +RefactoringAction 1475845184290 TestRomanNumerals.java ADD void testRomanNumberals_NineHundred()/2 METHOD +RefactoringAction 1475845188305 TestRomanNumerals.java RENAME testRomanNumberals_NineHundred()/2=>void testRomanNumberals_T() METHOD +RefactoringAction 1475845189321 TestRomanNumerals.java RENAME testRomanNumberals_T()=>void testRomanNumberals_Th() METHOD +RefactoringAction 1475845197340 TestRomanNumerals.java RENAME testRomanNumberals_Th()=>void testRomanNumberals_OneThousandNineHundredNinetyThree() METHOD +EditAction 1475845214449 TestRomanNumerals.java 3996 28 55 28 diff --git a/.besouro/20161007144331704/besouroEpisodes.txt b/.besouro/20161007144331704/besouroEpisodes.txt index 27daa0c..52f55b7 100644 --- a/.besouro/20161007144331704/besouroEpisodes.txt +++ b/.besouro/20161007144331704/besouroEpisodes.txt @@ -83,3 +83,5 @@ 1475845091397 test-addition 1 15 true 1475845140660 test-first 3 44 true 1475845140661 test-first 3 44 true +1475845176832 test-first 3 26 true +1475845176833 test-first 3 26 true diff --git a/.besouro/20161007144331704/randomHeuristicEpisodes.txt b/.besouro/20161007144331704/randomHeuristicEpisodes.txt index 69353aa..fed1c32 100644 --- a/.besouro/20161007144331704/randomHeuristicEpisodes.txt +++ b/.besouro/20161007144331704/randomHeuristicEpisodes.txt @@ -17,3 +17,4 @@ 1475845070700 test-addition 1 12 true 1475845091396 test-addition 1 15 false 1475845140660 test-first 3 44 true +1475845176832 test-first 3 26 true diff --git a/.besouro/20161007144331704/zorroEpisodes.txt b/.besouro/20161007144331704/zorroEpisodes.txt index 8acd6d8..6669228 100644 --- a/.besouro/20161007144331704/zorroEpisodes.txt +++ b/.besouro/20161007144331704/zorroEpisodes.txt @@ -17,3 +17,4 @@ 1475845070700 test-addition 1 22 true 1475845091396 test-addition 1 20 true 1475845140660 test-first 3 49 true +1475845176832 test-first 3 36 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 67159c1..7d464d7 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -196,6 +196,13 @@ public void testRomanNumberals_NineHundred() { assertEquals(900, integer); } + @Test + public void testRomanNumberals_OneThousandNineHundredNinetyThree() { + + int integer = test.convertToInteger("MCMXCIII"); + assertEquals(1993, integer); + + } From 0f9e1b8483f88785256fbad4edc698662ac7b00e Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 16:00:34 +0300 Subject: [PATCH 106/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 4 ++++ .besouro/20161007144331704/besouroEpisodes.txt | 2 ++ .besouro/20161007144331704/randomHeuristicEpisodes.txt | 1 + .besouro/20161007144331704/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 7 +++++++ 5 files changed, 15 insertions(+) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 736240f..11486e5 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -406,3 +406,7 @@ RefactoringAction 1475845188305 TestRomanNumerals.java RENAME testRomanNumberals RefactoringAction 1475845189321 TestRomanNumerals.java RENAME testRomanNumberals_T()=>void testRomanNumberals_Th() METHOD RefactoringAction 1475845197340 TestRomanNumerals.java RENAME testRomanNumberals_Th()=>void testRomanNumberals_OneThousandNineHundredNinetyThree() METHOD EditAction 1475845214449 TestRomanNumerals.java 3996 28 55 28 +UnitTestCaseAction 1475845217381 TestRomanNumerals.java OK +UnitTestSessionAction 1475845217382 TestRomanNumerals.java OK +RefactoringAction 1475845234376 TestRomanNumerals.java ADD void testRomanNumberals_OneThousandNineHundredNinetyThree()/2 METHOD +EditAction 1475845234395 TestRomanNumerals.java 4163 29 57 29 diff --git a/.besouro/20161007144331704/besouroEpisodes.txt b/.besouro/20161007144331704/besouroEpisodes.txt index 52f55b7..76b0276 100644 --- a/.besouro/20161007144331704/besouroEpisodes.txt +++ b/.besouro/20161007144331704/besouroEpisodes.txt @@ -85,3 +85,5 @@ 1475845140661 test-first 3 44 true 1475845176832 test-first 3 26 true 1475845176833 test-first 3 26 true +1475845217382 test-addition 1 33 true +1475845217383 test-addition 1 33 true diff --git a/.besouro/20161007144331704/randomHeuristicEpisodes.txt b/.besouro/20161007144331704/randomHeuristicEpisodes.txt index fed1c32..97e82cc 100644 --- a/.besouro/20161007144331704/randomHeuristicEpisodes.txt +++ b/.besouro/20161007144331704/randomHeuristicEpisodes.txt @@ -18,3 +18,4 @@ 1475845091396 test-addition 1 15 false 1475845140660 test-first 3 44 true 1475845176832 test-first 3 26 true +1475845217382 test-addition 1 33 true diff --git a/.besouro/20161007144331704/zorroEpisodes.txt b/.besouro/20161007144331704/zorroEpisodes.txt index 6669228..d403bb2 100644 --- a/.besouro/20161007144331704/zorroEpisodes.txt +++ b/.besouro/20161007144331704/zorroEpisodes.txt @@ -18,3 +18,4 @@ 1475845091396 test-addition 1 20 true 1475845140660 test-first 3 49 true 1475845176832 test-first 3 36 true +1475845217382 test-addition 1 40 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 7d464d7..888b1fa 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -203,6 +203,13 @@ public void testRomanNumberals_OneThousandNineHundredNinetyThree() { assertEquals(1993, integer); } + @Test + public void testRomanNumberals_OneThousandNineHundredNinetyThree() { + + int integer = test.convertToInteger("MCMXCIII"); + assertEquals(1993, integer); + + } From b945ad34a80a2f15504c89b91d9c5ae098f818d9 Mon Sep 17 00:00:00 2001 From: somename Date: Fri, 7 Oct 2016 16:01:25 +0300 Subject: [PATCH 107/107] besouro automatic message --- .besouro/20161007144331704/actions.txt | 5 +++++ .besouro/20161007144331704/besouroEpisodes.txt | 2 ++ .besouro/20161007144331704/randomHeuristicEpisodes.txt | 1 + .besouro/20161007144331704/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 6 +++--- 5 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.besouro/20161007144331704/actions.txt b/.besouro/20161007144331704/actions.txt index 11486e5..646ea1f 100644 --- a/.besouro/20161007144331704/actions.txt +++ b/.besouro/20161007144331704/actions.txt @@ -410,3 +410,8 @@ UnitTestCaseAction 1475845217381 TestRomanNumerals.java OK UnitTestSessionAction 1475845217382 TestRomanNumerals.java OK RefactoringAction 1475845234376 TestRomanNumerals.java ADD void testRomanNumberals_OneThousandNineHundredNinetyThree()/2 METHOD EditAction 1475845234395 TestRomanNumerals.java 4163 29 57 29 +CompilationAction 1475845235530 TestRomanNumerals.java +RefactoringAction 1475845239910 TestRomanNumerals.java RENAME testRomanNumberals_OneThousandNineHundredNinetyThree()/2=>void testRomanNumberals_1984() METHOD +CompilationAction 1475845247827 TestRomanNumerals.java +UnitTestCaseAction 1475845249694 TestRomanNumerals.java OK +UnitTestSessionAction 1475845249695 TestRomanNumerals.java OK diff --git a/.besouro/20161007144331704/besouroEpisodes.txt b/.besouro/20161007144331704/besouroEpisodes.txt index 76b0276..634644c 100644 --- a/.besouro/20161007144331704/besouroEpisodes.txt +++ b/.besouro/20161007144331704/besouroEpisodes.txt @@ -87,3 +87,5 @@ 1475845176833 test-first 3 26 true 1475845217382 test-addition 1 33 true 1475845217383 test-addition 1 33 true +1475845249695 test-addition 1 15 true +1475845249696 test-addition 1 15 true diff --git a/.besouro/20161007144331704/randomHeuristicEpisodes.txt b/.besouro/20161007144331704/randomHeuristicEpisodes.txt index 97e82cc..ec7706d 100644 --- a/.besouro/20161007144331704/randomHeuristicEpisodes.txt +++ b/.besouro/20161007144331704/randomHeuristicEpisodes.txt @@ -19,3 +19,4 @@ 1475845140660 test-first 3 44 true 1475845176832 test-first 3 26 true 1475845217382 test-addition 1 33 true +1475845249695 test-addition 1 15 false diff --git a/.besouro/20161007144331704/zorroEpisodes.txt b/.besouro/20161007144331704/zorroEpisodes.txt index d403bb2..0bde0c5 100644 --- a/.besouro/20161007144331704/zorroEpisodes.txt +++ b/.besouro/20161007144331704/zorroEpisodes.txt @@ -19,3 +19,4 @@ 1475845140660 test-first 3 49 true 1475845176832 test-first 3 36 true 1475845217382 test-addition 1 40 true +1475845249695 test-addition 1 32 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 888b1fa..f580e9e 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -204,10 +204,10 @@ public void testRomanNumberals_OneThousandNineHundredNinetyThree() { } @Test - public void testRomanNumberals_OneThousandNineHundredNinetyThree() { + public void testRomanNumberals_1984() { - int integer = test.convertToInteger("MCMXCIII"); - assertEquals(1993, integer); + int integer = test.convertToInteger("MCMLXXXIV"); + assertEquals(1984, integer); }