From 7f99e8c9c78d0300a1a2823e681a290235bb8d51 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 14:37:24 +0300 Subject: [PATCH 001/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ .besouro/20160929143717113/besouroEpisodes.txt | 0 .besouro/20160929143717113/disagreements.txt | 0 .besouro/20160929143717113/randomHeuristicEpisodes.txt | 0 .besouro/20160929143717113/userComments.txt | 0 .besouro/20160929143717113/zorroEpisodes.txt | 0 tests/TestRomanNumerals.java | 5 ++++- 7 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .besouro/20160929143717113/actions.txt create mode 100644 .besouro/20160929143717113/besouroEpisodes.txt create mode 100644 .besouro/20160929143717113/disagreements.txt create mode 100644 .besouro/20160929143717113/randomHeuristicEpisodes.txt create mode 100644 .besouro/20160929143717113/userComments.txt create mode 100644 .besouro/20160929143717113/zorroEpisodes.txt diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt new file mode 100644 index 0000000..524be2f --- /dev/null +++ b/.besouro/20160929143717113/actions.txt @@ -0,0 +1,3 @@ +FileOpenedAction 1475149037345 TestRomanNumerals.java 159 1 1 0 +RefactoringAction 1475149041774 TestRomanNumerals.java ADD void testConvertingI() METHOD +EditAction 1475149044804 TestRomanNumerals.java 281 2 3 1 diff --git a/.besouro/20160929143717113/besouroEpisodes.txt b/.besouro/20160929143717113/besouroEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20160929143717113/disagreements.txt b/.besouro/20160929143717113/disagreements.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20160929143717113/randomHeuristicEpisodes.txt b/.besouro/20160929143717113/randomHeuristicEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20160929143717113/userComments.txt b/.besouro/20160929143717113/userComments.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20160929143717113/zorroEpisodes.txt b/.besouro/20160929143717113/zorroEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 5d1de75..fe72b05 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -6,7 +6,10 @@ public class TestRomanNumerals { @Test public void test() { - fail("Not yet implemented"); + public void testConvertingI() { + RomanNumerals rn = new RomanNumerals(); + int converted = rn.convertToInteger("I"); + assertEquals(1, converted); } } From 7cf307cc26f182db67815fdeabe8ee6d686eb467 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 14:37:44 +0300 Subject: [PATCH 002/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 5 +++++ tests/TestRomanNumerals.java | 1 + 2 files changed, 6 insertions(+) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 524be2f..c843b93 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -1,3 +1,8 @@ FileOpenedAction 1475149037345 TestRomanNumerals.java 159 1 1 0 RefactoringAction 1475149041774 TestRomanNumerals.java ADD void testConvertingI() METHOD EditAction 1475149044804 TestRomanNumerals.java 281 2 3 1 +CompilationAction 1475149044959 TestRomanNumerals.java +UnitTestCaseAction 1475149047238 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475149047238 TestRomanNumerals.java FAIL +RefactoringAction 1475149060883 TestRomanNumerals.java REMOVE testConvertingI() METHOD +EditAction 1475149064257 TestRomanNumerals.java 285 1 0 0 diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index fe72b05..bd40988 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -10,6 +10,7 @@ public void testConvertingI() { RomanNumerals rn = new RomanNumerals(); int converted = rn.convertToInteger("I"); assertEquals(1, converted); + } } } From 6374c2ccb9972e6dbc22f628f1bdc12b8c96b7cb Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 14:39:33 +0300 Subject: [PATCH 003/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 17 +++++++++++++++++ src/RomanNumerals.java | 7 ++++--- tests/TestRomanNumerals.java | 11 ++++------- 3 files changed, 25 insertions(+), 10 deletions(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index c843b93..2636408 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -6,3 +6,20 @@ UnitTestCaseAction 1475149047238 TestRomanNumerals.java FAIL UnitTestSessionAction 1475149047238 TestRomanNumerals.java FAIL RefactoringAction 1475149060883 TestRomanNumerals.java REMOVE testConvertingI() METHOD EditAction 1475149064257 TestRomanNumerals.java 285 1 0 0 +CompilationAction 1475149064335 TestRomanNumerals.java +CompilationAction 1475149064336 TestRomanNumerals.java +CompilationAction 1475149064336 TestRomanNumerals.java +CompilationAction 1475149064336 TestRomanNumerals.java +CompilationAction 1475149064336 TestRomanNumerals.java +UnitTestCaseAction 1475149065636 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475149065636 TestRomanNumerals.java FAIL +RefactoringAction 1475149075927 TestRomanNumerals.java ADD void testConvertingI() METHOD +RefactoringAction 1475149079458 TestRomanNumerals.java REMOVE test() METHOD +CompilationAction 1475149088590 TestRomanNumerals.java +CompilationAction 1475149088591 TestRomanNumerals.java +CompilationAction 1475149088592 TestRomanNumerals.java +CompilationAction 1475149088593 TestRomanNumerals.java +CompilationAction 1475149088594 TestRomanNumerals.java +UnitTestCaseAction 1475149090429 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475149090430 TestRomanNumerals.java FAIL +EditAction 1475149173831 RomanNumerals.java 139 1 1 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 20904f0..128bd0d 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -1,8 +1,9 @@ public class RomanNumerals { public int convertToInteger(String romanNum) { - // To be Implemented - return 0; - + if(romanNum == "I") + return 1; + else + return 0; } } diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index bd40988..a0f4d30 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -5,12 +5,9 @@ public class TestRomanNumerals { @Test - public void test() { - public void testConvertingI() { - RomanNumerals rn = new RomanNumerals(); - int converted = rn.convertToInteger("I"); - assertEquals(1, converted); - } + public void testConvertingI() { + RomanNumerals rn = new RomanNumerals(); + int converted = rn.convertToInteger("I"); + assertEquals(1, converted); } - } From 8477562b173e06d9b5cb468be4d05c85654d7469 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 14:43:10 +0300 Subject: [PATCH 004/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 14 ++++++++++++++ .besouro/20160929143717113/besouroEpisodes.txt | 10 ++++++++++ .../20160929143717113/randomHeuristicEpisodes.txt | 1 + .besouro/20160929143717113/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 13 +++++++++++++ 5 files changed, 39 insertions(+) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 2636408..af7df4c 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -23,3 +23,17 @@ CompilationAction 1475149088594 TestRomanNumerals.java UnitTestCaseAction 1475149090429 TestRomanNumerals.java FAIL UnitTestSessionAction 1475149090430 TestRomanNumerals.java FAIL EditAction 1475149173831 RomanNumerals.java 139 1 1 0 +UnitTestCaseAction 1475149174100 TestRomanNumerals.java OK +UnitTestSessionAction 1475149174101 TestRomanNumerals.java OK +RefactoringAction 1475149204096 TestRomanNumerals.java ADD void test FIELD +RefactoringAction 1475149208612 TestRomanNumerals.java RENAME test=>void testConverting FIELD +RefactoringAction 1475149215126 TestRomanNumerals.java RENAME testConverting=>void test FIELD +RefactoringAction 1475149231641 TestRomanNumerals.java RENAME test=>void testCon FIELD +RefactoringAction 1475149233656 TestRomanNumerals.java RENAME testCon=>void testConverting FIELD +RefactoringAction 1475149259673 TestRomanNumerals.java RENAME testConverting=>void testConvertingn FIELD +RefactoringAction 1475149261188 TestRomanNumerals.java RENAME testConvertingn=>void testConvertingnumber FIELD +RefactoringAction 1475149265202 TestRomanNumerals.java RENAME testConvertingnumber=>void testConverting FIELD +RefactoringAction 1475149268717 TestRomanNumerals.java RENAME testConverting=>void testConverting12 FIELD +RefactoringAction 1475149269730 TestRomanNumerals.java RENAME testConverting12=>void testConverting1 FIELD +RefactoringAction 1475149271746 TestRomanNumerals.java RENAME testConverting1=>void testConverting1() METHOD +EditAction 1475149390130 TestRomanNumerals.java 483 2 7 2 diff --git a/.besouro/20160929143717113/besouroEpisodes.txt b/.besouro/20160929143717113/besouroEpisodes.txt index e69de29..6de875a 100644 --- a/.besouro/20160929143717113/besouroEpisodes.txt +++ b/.besouro/20160929143717113/besouroEpisodes.txt @@ -0,0 +1,10 @@ +1475149174101 test-addition 2 136 true +1475149174102 test-addition 2 136 true +1475149174103 test-addition 1 136 true +1475149174104 test-addition 2 136 true +1475149174105 test-addition 2 136 true +1475149174106 test-addition 2 136 true +1475149174107 test-addition 1 136 true +1475149174108 test-addition 2 136 true +1475149174109 test-addition 1 136 true +1475149174110 test-addition 2 136 true diff --git a/.besouro/20160929143717113/randomHeuristicEpisodes.txt b/.besouro/20160929143717113/randomHeuristicEpisodes.txt index e69de29..fef4038 100644 --- a/.besouro/20160929143717113/randomHeuristicEpisodes.txt +++ b/.besouro/20160929143717113/randomHeuristicEpisodes.txt @@ -0,0 +1 @@ +1475149174101 test-addition 2 136 true diff --git a/.besouro/20160929143717113/zorroEpisodes.txt b/.besouro/20160929143717113/zorroEpisodes.txt index e69de29..fbe45a6 100644 --- a/.besouro/20160929143717113/zorroEpisodes.txt +++ b/.besouro/20160929143717113/zorroEpisodes.txt @@ -0,0 +1 @@ +1475149174101 test-addition 2 136 false diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index a0f4d30..c50e2ef 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -10,4 +10,17 @@ public void testConvertingI() { int converted = rn.convertToInteger("I"); assertEquals(1, converted); } + + @Test + public void testConverting1() { + RomanNumerals rn = new RomanNumerals(); + boolean thrown = false; + try { + rn.convertToInteger("I"); + } + catch(Exception e) { + thrown = true; + } + assertEquals(true, thrown); + } } From dd857407e3b4f29657058630fe36e261dc25f6d3 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 14:43:28 +0300 Subject: [PATCH 005/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ tests/TestRomanNumerals.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index af7df4c..c823ed1 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -37,3 +37,6 @@ RefactoringAction 1475149268717 TestRomanNumerals.java RENAME testConverting=>vo RefactoringAction 1475149269730 TestRomanNumerals.java RENAME testConverting12=>void testConverting1 FIELD RefactoringAction 1475149271746 TestRomanNumerals.java RENAME testConverting1=>void testConverting1() METHOD EditAction 1475149390130 TestRomanNumerals.java 483 2 7 2 +UnitTestCaseAction 1475149390387 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475149390387 TestRomanNumerals.java FAIL +EditAction 1475149408027 TestRomanNumerals.java 483 2 7 2 diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index c50e2ef..2b4317b 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -16,7 +16,7 @@ public void testConverting1() { RomanNumerals rn = new RomanNumerals(); boolean thrown = false; try { - rn.convertToInteger("I"); + rn.convertToInteger("1"); } catch(Exception e) { thrown = true; From 42af86738f6a9eef141220faa77d4fe4d3ab4561 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 14:46:53 +0300 Subject: [PATCH 006/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 11 +++++++++++ src/RomanNumeralsException.java | 8 ++++++++ 2 files changed, 19 insertions(+) create mode 100644 src/RomanNumeralsException.java diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index c823ed1..ed0052e 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -40,3 +40,14 @@ EditAction 1475149390130 TestRomanNumerals.java 483 2 7 2 UnitTestCaseAction 1475149390387 TestRomanNumerals.java FAIL UnitTestSessionAction 1475149390387 TestRomanNumerals.java FAIL EditAction 1475149408027 TestRomanNumerals.java 483 2 7 2 +UnitTestCaseAction 1475149408292 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475149408292 TestRomanNumerals.java FAIL +RefactoringAction 1475149553352 RomanNumeralsException.java ADD RomanNumeralsException.java CLASS +FileOpenedAction 1475149553518 RomanNumeralsException.java 46 0 0 0 +RefactoringAction 1475149588047 RomanNumeralsException.java ADD long serialVersionUID FIELD +RefactoringAction 1475149588048 RomanNumeralsException.java ADD void LengthException(String) METHOD +RefactoringAction 1475149604585 RomanNumeralsException.java RENAME LengthException(String)=>void RomanNumeException(String) METHOD +RefactoringAction 1475149605595 RomanNumeralsException.java RENAME RomanNumeException(String)=>RomanNumeralsException(String) METHOD +RefactoringAction 1475149608107 RomanNumeralsException.java RENAME RomanNumeralsException(String)=>void RomanNumeralsExceptionException(String) METHOD +RefactoringAction 1475149610616 RomanNumeralsException.java RENAME RomanNumeralsExceptionException(String)=>RomanNumeralsException(String) METHOD +EditAction 1475149613640 RomanNumeralsException.java 178 1 1 0 diff --git a/src/RomanNumeralsException.java b/src/RomanNumeralsException.java new file mode 100644 index 0000000..06543d0 --- /dev/null +++ b/src/RomanNumeralsException.java @@ -0,0 +1,8 @@ + +public class RomanNumeralsException extends Exception{ + private static final long serialVersionUID = 1L; + + public RomanNumeralsException(String msg){ + super(msg); + } +} From a49c8eb634d0f905b2a7780c594bd2c2fda86c55 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 14:49:54 +0300 Subject: [PATCH 007/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 1 + src/RomanNumerals.java | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index ed0052e..0b6a457 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -51,3 +51,4 @@ RefactoringAction 1475149605595 RomanNumeralsException.java RENAME RomanNumeExce RefactoringAction 1475149608107 RomanNumeralsException.java RENAME RomanNumeralsException(String)=>void RomanNumeralsExceptionException(String) METHOD RefactoringAction 1475149610616 RomanNumeralsException.java RENAME RomanNumeralsExceptionException(String)=>RomanNumeralsException(String) METHOD EditAction 1475149613640 RomanNumeralsException.java 178 1 1 0 +EditAction 1475149794013 RomanNumerals.java 334 1 2 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 128bd0d..c2aaad8 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -1,6 +1,12 @@ public class RomanNumerals { - public int convertToInteger(String romanNum) { + public int convertToInteger(String romanNum) throws RomanNumeralsException{ + for(char c : romanNum.toCharArray()) { + if(Character.isDigit(c)) { + throw new RomanNumeralsException("Roman Numeral to be converted isn't valid"); + } + + } if(romanNum == "I") return 1; else From 62504d9173ee41a28d76177ce4698940824612df Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 14:52:05 +0300 Subject: [PATCH 008/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 12 +++++++++++ .../20160929143717113/besouroEpisodes.txt | 4 ++++ .../randomHeuristicEpisodes.txt | 1 + .besouro/20160929143717113/zorroEpisodes.txt | 3 ++- tests/TestRomanNumerals.java | 21 +++++++++++++++++-- 5 files changed, 38 insertions(+), 3 deletions(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 0b6a457..794fff4 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -52,3 +52,15 @@ RefactoringAction 1475149608107 RomanNumeralsException.java RENAME RomanNumerals RefactoringAction 1475149610616 RomanNumeralsException.java RENAME RomanNumeralsExceptionException(String)=>RomanNumeralsException(String) METHOD EditAction 1475149613640 RomanNumeralsException.java 178 1 1 0 EditAction 1475149794013 RomanNumerals.java 334 1 2 0 +CompilationAction 1475149794127 TestRomanNumerals.java +UnitTestCaseAction 1475149796135 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475149796136 TestRomanNumerals.java FAIL +CompilationAction 1475149842771 TestRomanNumerals.java +UnitTestCaseAction 1475149843015 TestRomanNumerals.java OK +UnitTestSessionAction 1475149843015 TestRomanNumerals.java OK +RefactoringAction 1475149885543 TestRomanNumerals.java ADD void test FIELD +RefactoringAction 1475149902559 TestRomanNumerals.java RENAME test=>void testc FIELD +RefactoringAction 1475149906581 TestRomanNumerals.java RENAME testc=>void testConverting FIELD +RefactoringAction 1475149909095 TestRomanNumerals.java RENAME testConverting=>void testConvertingA FIELD +RefactoringAction 1475149910610 TestRomanNumerals.java RENAME testConvertingA=>void testConvertingA() METHOD +EditAction 1475149925321 TestRomanNumerals.java 753 3 10 2 diff --git a/.besouro/20160929143717113/besouroEpisodes.txt b/.besouro/20160929143717113/besouroEpisodes.txt index 6de875a..06b6d39 100644 --- a/.besouro/20160929143717113/besouroEpisodes.txt +++ b/.besouro/20160929143717113/besouroEpisodes.txt @@ -8,3 +8,7 @@ 1475149174108 test-addition 2 136 true 1475149174109 test-addition 1 136 true 1475149174110 test-addition 2 136 true +1475149843015 test-first 3 638 true +1475149843016 test-first 3 638 true +1475149843017 test-first 3 638 true +1475149843018 test-first 3 638 true diff --git a/.besouro/20160929143717113/randomHeuristicEpisodes.txt b/.besouro/20160929143717113/randomHeuristicEpisodes.txt index fef4038..006a169 100644 --- a/.besouro/20160929143717113/randomHeuristicEpisodes.txt +++ b/.besouro/20160929143717113/randomHeuristicEpisodes.txt @@ -1 +1,2 @@ 1475149174101 test-addition 2 136 true +1475149843015 test-first 3 638 true diff --git a/.besouro/20160929143717113/zorroEpisodes.txt b/.besouro/20160929143717113/zorroEpisodes.txt index fbe45a6..5718b42 100644 --- a/.besouro/20160929143717113/zorroEpisodes.txt +++ b/.besouro/20160929143717113/zorroEpisodes.txt @@ -1 +1,2 @@ -1475149174101 test-addition 2 136 false +1475149174101 test-addition 2 136 true +1475149843015 test-first 3 668 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 2b4317b..c94b83b 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -7,8 +7,12 @@ public class TestRomanNumerals { @Test public void testConvertingI() { RomanNumerals rn = new RomanNumerals(); - int converted = rn.convertToInteger("I"); - assertEquals(1, converted); + try { + int converted = rn.convertToInteger("I"); + assertEquals(1, converted); + } + catch(Exception e) { + } } @Test @@ -23,4 +27,17 @@ public void testConverting1() { } assertEquals(true, thrown); } + + @Test + public void testConvertingA() { + RomanNumerals rn = new RomanNumerals(); + boolean thrown = false; + try { + rn.convertToInteger("A"); + } + catch(Exception e) { + thrown = true; + } + assertEquals(true, thrown); + } } From 4e94bc3289dda80af78085f2bbb05354a350b591 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 14:55:40 +0300 Subject: [PATCH 009/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ src/RomanNumerals.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 794fff4..d98c22d 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -64,3 +64,6 @@ RefactoringAction 1475149906581 TestRomanNumerals.java RENAME testc=>void testCo RefactoringAction 1475149909095 TestRomanNumerals.java RENAME testConverting=>void testConvertingA FIELD RefactoringAction 1475149910610 TestRomanNumerals.java RENAME testConvertingA=>void testConvertingA() METHOD EditAction 1475149925321 TestRomanNumerals.java 753 3 10 2 +UnitTestCaseAction 1475149925586 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475149925586 TestRomanNumerals.java FAIL +EditAction 1475150139993 RomanNumerals.java 394 1 2 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index c2aaad8..6935141 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -2,7 +2,7 @@ public class RomanNumerals { public int convertToInteger(String romanNum) throws RomanNumeralsException{ for(char c : romanNum.toCharArray()) { - if(Character.isDigit(c)) { + if(c != 'I' || c != 'V' || c != 'X' || c != 'L' || c != 'C' || c != 'D' || c != 'M') { throw new RomanNumeralsException("Roman Numeral to be converted isn't valid"); } From fd8f5ce1d689ef9ba4aed519e1decd1ea8c01b83 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 14:57:34 +0300 Subject: [PATCH 010/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 9 +++++ .../20160929143717113/besouroEpisodes.txt | 36 +++++++++++++++++++ .../randomHeuristicEpisodes.txt | 1 + .besouro/20160929143717113/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 11 ++++++ 5 files changed, 58 insertions(+) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index d98c22d..0b939f2 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -67,3 +67,12 @@ EditAction 1475149925321 TestRomanNumerals.java 753 3 10 2 UnitTestCaseAction 1475149925586 TestRomanNumerals.java FAIL UnitTestSessionAction 1475149925586 TestRomanNumerals.java FAIL EditAction 1475150139993 RomanNumerals.java 394 1 2 0 +UnitTestCaseAction 1475150140256 TestRomanNumerals.java OK +UnitTestSessionAction 1475150140257 TestRomanNumerals.java OK +RefactoringAction 1475150186246 TestRomanNumerals.java ADD void test FIELD +RefactoringAction 1475150188760 TestRomanNumerals.java RENAME test=>void testConverting FIELD +RefactoringAction 1475150190781 TestRomanNumerals.java RENAME testConverting=>void testConvertingIII FIELD +RefactoringAction 1475150191796 TestRomanNumerals.java RENAME testConvertingIII=>void testConvertingIII() METHOD +RefactoringAction 1475150193310 TestRomanNumerals.java RENAME testConvertingIII()=>void testConvertingII FIELD +RefactoringAction 1475150194325 TestRomanNumerals.java RENAME testConvertingII=>void testConvertingII() METHOD +EditAction 1475150254262 TestRomanNumerals.java 957 4 12 2 diff --git a/.besouro/20160929143717113/besouroEpisodes.txt b/.besouro/20160929143717113/besouroEpisodes.txt index 06b6d39..e4b5df0 100644 --- a/.besouro/20160929143717113/besouroEpisodes.txt +++ b/.besouro/20160929143717113/besouroEpisodes.txt @@ -12,3 +12,39 @@ 1475149843016 test-first 3 638 true 1475149843017 test-first 3 638 true 1475149843018 test-first 3 638 true +1475150140257 refactoring 3 254 true +1475150140258 refactoring 3 254 true +1475150140259 refactoring 3 254 true +1475150140260 refactoring 3 254 true +1475150140261 refactoring 3 254 true +1475150140262 refactoring 3 254 true +1475150140263 refactoring 3 254 true +1475150140264 refactoring 3 254 true +1475150140265 refactoring 3 254 true +1475150140266 refactoring 3 254 true +1475150140267 refactoring 3 254 true +1475150140268 refactoring 3 254 true +1475150140269 refactoring 3 254 true +1475150140270 refactoring 3 254 true +1475150140271 refactoring 3 254 true +1475150140272 refactoring 3 254 true +1475150140273 refactoring 3 254 true +1475150140274 refactoring 3 254 true +1475150140275 refactoring 3 254 true +1475150140276 refactoring 3 254 true +1475150140277 refactoring 3 254 true +1475150140278 refactoring 3 254 true +1475150140279 refactoring 3 254 true +1475150140280 refactoring 3 254 true +1475150140281 refactoring 3 254 true +1475150140282 refactoring 3 254 true +1475150140283 refactoring 3 254 true +1475150140284 refactoring 3 254 true +1475150140285 refactoring 3 254 true +1475150140286 refactoring 3 254 true +1475150140287 refactoring 3 254 true +1475150140288 refactoring 3 254 true +1475150140289 refactoring 3 254 true +1475150140290 refactoring 3 254 true +1475150140291 refactoring 3 254 true +1475150140292 refactoring 3 254 true diff --git a/.besouro/20160929143717113/randomHeuristicEpisodes.txt b/.besouro/20160929143717113/randomHeuristicEpisodes.txt index 006a169..e6c3646 100644 --- a/.besouro/20160929143717113/randomHeuristicEpisodes.txt +++ b/.besouro/20160929143717113/randomHeuristicEpisodes.txt @@ -1,2 +1,3 @@ 1475149174101 test-addition 2 136 true 1475149843015 test-first 3 638 true +1475150140257 refactoring 3 254 false diff --git a/.besouro/20160929143717113/zorroEpisodes.txt b/.besouro/20160929143717113/zorroEpisodes.txt index 5718b42..4fada80 100644 --- a/.besouro/20160929143717113/zorroEpisodes.txt +++ b/.besouro/20160929143717113/zorroEpisodes.txt @@ -1,2 +1,3 @@ 1475149174101 test-addition 2 136 true 1475149843015 test-first 3 668 true +1475150140257 refactoring 3 297 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index c94b83b..6d2ab44 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -40,4 +40,15 @@ public void testConvertingA() { } assertEquals(true, thrown); } + + @Test + public void testConvertingII() { + RomanNumerals rn = new RomanNumerals(); + try { + int converted = rn.convertToInteger("II"); + assertEquals(1, converted); + } + catch(Exception e) { + } + } } From 6a1c1338e7f1e94ea00017a203346274c8c77a9e Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 14:57:52 +0300 Subject: [PATCH 011/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 ++ .../20160929143717113/besouroEpisodes.txt | 43 +++++++++++++++++++ .../randomHeuristicEpisodes.txt | 1 + .besouro/20160929143717113/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 2 +- 5 files changed, 49 insertions(+), 1 deletion(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 0b939f2..bd65140 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -76,3 +76,6 @@ RefactoringAction 1475150191796 TestRomanNumerals.java RENAME testConvertingIII= RefactoringAction 1475150193310 TestRomanNumerals.java RENAME testConvertingIII()=>void testConvertingII FIELD RefactoringAction 1475150194325 TestRomanNumerals.java RENAME testConvertingII=>void testConvertingII() METHOD EditAction 1475150254262 TestRomanNumerals.java 957 4 12 2 +UnitTestCaseAction 1475150257722 TestRomanNumerals.java OK +UnitTestSessionAction 1475150257723 TestRomanNumerals.java OK +EditAction 1475150272000 TestRomanNumerals.java 957 4 12 2 diff --git a/.besouro/20160929143717113/besouroEpisodes.txt b/.besouro/20160929143717113/besouroEpisodes.txt index e4b5df0..3b57362 100644 --- a/.besouro/20160929143717113/besouroEpisodes.txt +++ b/.besouro/20160929143717113/besouroEpisodes.txt @@ -48,3 +48,46 @@ 1475150140290 refactoring 3 254 true 1475150140291 refactoring 3 254 true 1475150140292 refactoring 3 254 true +1475150257723 refactoring 3 71 true +1475150257724 refactoring 3 71 true +1475150257725 refactoring 3 71 true +1475150257726 refactoring 3 71 true +1475150257727 refactoring 3 71 true +1475150257728 refactoring 3 71 true +1475150257729 refactoring 3 71 true +1475150257730 refactoring 3 71 true +1475150257731 refactoring 3 71 true +1475150257732 refactoring 3 71 true +1475150257733 refactoring 3 71 true +1475150257734 refactoring 3 71 true +1475150257735 refactoring 3 71 true +1475150257736 refactoring 3 71 true +1475150257737 refactoring 3 71 true +1475150257738 refactoring 1A 71 true +1475150257739 refactoring 3 71 true +1475150257740 refactoring 3 71 true +1475150257741 refactoring 3 71 true +1475150257742 refactoring 3 71 true +1475150257743 refactoring 3 71 true +1475150257744 refactoring 3 71 true +1475150257745 refactoring 3 71 true +1475150257746 refactoring 3 71 true +1475150257747 refactoring 3 71 true +1475150257748 refactoring 3 71 true +1475150257749 refactoring 3 71 true +1475150257750 refactoring 3 71 true +1475150257751 refactoring 3 71 true +1475150257752 refactoring 3 71 true +1475150257753 refactoring 3 71 true +1475150257754 refactoring 3 71 true +1475150257755 refactoring 3 71 true +1475150257756 refactoring 3 71 true +1475150257757 refactoring 3 71 true +1475150257758 refactoring 3 71 true +1475150257759 refactoring 3 71 true +1475150257760 refactoring 3 71 true +1475150257761 refactoring 3 71 true +1475150257762 refactoring 3 71 true +1475150257763 refactoring 3 71 true +1475150257764 refactoring 3 71 true +1475150257765 refactoring 3 71 true diff --git a/.besouro/20160929143717113/randomHeuristicEpisodes.txt b/.besouro/20160929143717113/randomHeuristicEpisodes.txt index e6c3646..f241a70 100644 --- a/.besouro/20160929143717113/randomHeuristicEpisodes.txt +++ b/.besouro/20160929143717113/randomHeuristicEpisodes.txt @@ -1,3 +1,4 @@ 1475149174101 test-addition 2 136 true 1475149843015 test-first 3 638 true 1475150140257 refactoring 3 254 false +1475150257723 refactoring 3 71 true diff --git a/.besouro/20160929143717113/zorroEpisodes.txt b/.besouro/20160929143717113/zorroEpisodes.txt index 4fada80..b565495 100644 --- a/.besouro/20160929143717113/zorroEpisodes.txt +++ b/.besouro/20160929143717113/zorroEpisodes.txt @@ -1,3 +1,4 @@ 1475149174101 test-addition 2 136 true 1475149843015 test-first 3 668 true 1475150140257 refactoring 3 297 true +1475150257723 refactoring 3 117 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 6d2ab44..1f4bf91 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -46,7 +46,7 @@ public void testConvertingII() { RomanNumerals rn = new RomanNumerals(); try { int converted = rn.convertToInteger("II"); - assertEquals(1, converted); + assertEquals(2, converted); } catch(Exception e) { } From 3094848ad67df1ab8e4c5145c5727a37db8c2512 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 14:59:19 +0300 Subject: [PATCH 012/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 7 +++++++ .besouro/20160929143717113/besouroEpisodes.txt | 3 +++ .besouro/20160929143717113/randomHeuristicEpisodes.txt | 3 +++ .besouro/20160929143717113/zorroEpisodes.txt | 3 +++ tests/TestRomanNumerals.java | 1 + 5 files changed, 17 insertions(+) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index bd65140..58f7821 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -79,3 +79,10 @@ EditAction 1475150254262 TestRomanNumerals.java 957 4 12 2 UnitTestCaseAction 1475150257722 TestRomanNumerals.java OK UnitTestSessionAction 1475150257723 TestRomanNumerals.java OK EditAction 1475150272000 TestRomanNumerals.java 957 4 12 2 +UnitTestCaseAction 1475150273048 TestRomanNumerals.java OK +UnitTestSessionAction 1475150273049 TestRomanNumerals.java OK +UnitTestCaseAction 1475150312135 TestRomanNumerals.java OK +UnitTestSessionAction 1475150312135 TestRomanNumerals.testConvertingII OK +UnitTestCaseAction 1475150325152 TestRomanNumerals.java OK +UnitTestSessionAction 1475150325153 TestRomanNumerals.java OK +EditAction 1475150359497 TestRomanNumerals.java 991 4 12 2 diff --git a/.besouro/20160929143717113/besouroEpisodes.txt b/.besouro/20160929143717113/besouroEpisodes.txt index 3b57362..49fa67f 100644 --- a/.besouro/20160929143717113/besouroEpisodes.txt +++ b/.besouro/20160929143717113/besouroEpisodes.txt @@ -91,3 +91,6 @@ 1475150257763 refactoring 3 71 true 1475150257764 refactoring 3 71 true 1475150257765 refactoring 3 71 true +1475150273049 regression 1 1 true +1475150312135 regression 1 0 true +1475150325153 regression 1 0 true diff --git a/.besouro/20160929143717113/randomHeuristicEpisodes.txt b/.besouro/20160929143717113/randomHeuristicEpisodes.txt index f241a70..70ebe56 100644 --- a/.besouro/20160929143717113/randomHeuristicEpisodes.txt +++ b/.besouro/20160929143717113/randomHeuristicEpisodes.txt @@ -2,3 +2,6 @@ 1475149843015 test-first 3 638 true 1475150140257 refactoring 3 254 false 1475150257723 refactoring 3 71 true +1475150273049 regression 1 1 false +1475150312135 regression 1 0 true +1475150325153 regression 1 0 true diff --git a/.besouro/20160929143717113/zorroEpisodes.txt b/.besouro/20160929143717113/zorroEpisodes.txt index b565495..8f6d3dc 100644 --- a/.besouro/20160929143717113/zorroEpisodes.txt +++ b/.besouro/20160929143717113/zorroEpisodes.txt @@ -2,3 +2,6 @@ 1475149843015 test-first 3 668 true 1475150140257 refactoring 3 297 true 1475150257723 refactoring 3 117 true +1475150273049 regression 1 15 true +1475150312135 regression 1 39 true +1475150325153 regression 1 13 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 1f4bf91..f0ca71e 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -46,6 +46,7 @@ public void testConvertingII() { RomanNumerals rn = new RomanNumerals(); try { int converted = rn.convertToInteger("II"); + System.out.println(converted); assertEquals(2, converted); } catch(Exception e) { From 6ae7db3b6c6ee5157e0eb36179561e67818b1b51 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 15:00:27 +0300 Subject: [PATCH 013/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 5 +++++ .besouro/20160929143717113/besouroEpisodes.txt | 2 ++ .besouro/20160929143717113/randomHeuristicEpisodes.txt | 2 ++ .besouro/20160929143717113/zorroEpisodes.txt | 2 ++ tests/TestRomanNumerals.java | 2 +- 5 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 58f7821..f82ce33 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -86,3 +86,8 @@ UnitTestSessionAction 1475150312135 TestRomanNumerals.testConvertingII OK UnitTestCaseAction 1475150325152 TestRomanNumerals.java OK UnitTestSessionAction 1475150325153 TestRomanNumerals.java OK EditAction 1475150359497 TestRomanNumerals.java 991 4 12 2 +UnitTestCaseAction 1475150359800 TestRomanNumerals.java OK +UnitTestSessionAction 1475150359800 TestRomanNumerals.java OK +UnitTestCaseAction 1475150389743 TestRomanNumerals.java OK +UnitTestSessionAction 1475150389743 TestRomanNumerals.java OK +EditAction 1475150427271 TestRomanNumerals.java 1004 4 12 2 diff --git a/.besouro/20160929143717113/besouroEpisodes.txt b/.besouro/20160929143717113/besouroEpisodes.txt index 49fa67f..6c19984 100644 --- a/.besouro/20160929143717113/besouroEpisodes.txt +++ b/.besouro/20160929143717113/besouroEpisodes.txt @@ -94,3 +94,5 @@ 1475150273049 regression 1 1 true 1475150312135 regression 1 0 true 1475150325153 regression 1 0 true +1475150359800 regression 1 0 true +1475150389743 regression 1 0 true diff --git a/.besouro/20160929143717113/randomHeuristicEpisodes.txt b/.besouro/20160929143717113/randomHeuristicEpisodes.txt index 70ebe56..b465e82 100644 --- a/.besouro/20160929143717113/randomHeuristicEpisodes.txt +++ b/.besouro/20160929143717113/randomHeuristicEpisodes.txt @@ -5,3 +5,5 @@ 1475150273049 regression 1 1 false 1475150312135 regression 1 0 true 1475150325153 regression 1 0 true +1475150359800 regression 1 0 true +1475150389743 regression 1 0 false diff --git a/.besouro/20160929143717113/zorroEpisodes.txt b/.besouro/20160929143717113/zorroEpisodes.txt index 8f6d3dc..dd42abf 100644 --- a/.besouro/20160929143717113/zorroEpisodes.txt +++ b/.besouro/20160929143717113/zorroEpisodes.txt @@ -5,3 +5,5 @@ 1475150273049 regression 1 15 true 1475150312135 regression 1 39 true 1475150325153 regression 1 13 true +1475150359800 regression 1 34 true +1475150389743 regression 1 29 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index f0ca71e..ded3b61 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -46,7 +46,7 @@ public void testConvertingII() { RomanNumerals rn = new RomanNumerals(); try { int converted = rn.convertToInteger("II"); - System.out.println(converted); + System.out.println("result: " + converted); assertEquals(2, converted); } catch(Exception e) { From 017eaee938bb5b9dbd81fe1ff251931dcd9d3d79 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 15:01:14 +0300 Subject: [PATCH 014/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ .besouro/20160929143717113/besouroEpisodes.txt | 1 + .besouro/20160929143717113/randomHeuristicEpisodes.txt | 1 + .besouro/20160929143717113/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 4 +++- 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index f82ce33..81d495a 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -91,3 +91,6 @@ UnitTestSessionAction 1475150359800 TestRomanNumerals.java OK UnitTestCaseAction 1475150389743 TestRomanNumerals.java OK UnitTestSessionAction 1475150389743 TestRomanNumerals.java OK EditAction 1475150427271 TestRomanNumerals.java 1004 4 12 2 +UnitTestCaseAction 1475150427539 TestRomanNumerals.java OK +UnitTestSessionAction 1475150427539 TestRomanNumerals.java OK +EditAction 1475150474713 TestRomanNumerals.java 1067 4 14 2 diff --git a/.besouro/20160929143717113/besouroEpisodes.txt b/.besouro/20160929143717113/besouroEpisodes.txt index 6c19984..f1b8f72 100644 --- a/.besouro/20160929143717113/besouroEpisodes.txt +++ b/.besouro/20160929143717113/besouroEpisodes.txt @@ -96,3 +96,4 @@ 1475150325153 regression 1 0 true 1475150359800 regression 1 0 true 1475150389743 regression 1 0 true +1475150427539 regression 1 0 true diff --git a/.besouro/20160929143717113/randomHeuristicEpisodes.txt b/.besouro/20160929143717113/randomHeuristicEpisodes.txt index b465e82..4a335fe 100644 --- a/.besouro/20160929143717113/randomHeuristicEpisodes.txt +++ b/.besouro/20160929143717113/randomHeuristicEpisodes.txt @@ -7,3 +7,4 @@ 1475150325153 regression 1 0 true 1475150359800 regression 1 0 true 1475150389743 regression 1 0 false +1475150427539 regression 1 0 false diff --git a/.besouro/20160929143717113/zorroEpisodes.txt b/.besouro/20160929143717113/zorroEpisodes.txt index dd42abf..fc202b1 100644 --- a/.besouro/20160929143717113/zorroEpisodes.txt +++ b/.besouro/20160929143717113/zorroEpisodes.txt @@ -7,3 +7,4 @@ 1475150325153 regression 1 13 true 1475150359800 regression 1 34 true 1475150389743 regression 1 29 true +1475150427539 regression 1 37 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index ded3b61..b49ca11 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -44,12 +44,14 @@ public void testConvertingA() { @Test public void testConvertingII() { RomanNumerals rn = new RomanNumerals(); + int converted = 0; try { - int converted = rn.convertToInteger("II"); + converted = rn.convertToInteger("II"); System.out.println("result: " + converted); assertEquals(2, converted); } catch(Exception e) { } + System.out.println("result: " + converted); } } From 283f90a0fb6ca909e9c260b0e9132dd1ba14193f Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 15:02:17 +0300 Subject: [PATCH 015/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ .besouro/20160929143717113/besouroEpisodes.txt | 1 + .besouro/20160929143717113/randomHeuristicEpisodes.txt | 1 + .besouro/20160929143717113/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 2 +- 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 81d495a..bee6e37 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -94,3 +94,6 @@ EditAction 1475150427271 TestRomanNumerals.java 1004 4 12 2 UnitTestCaseAction 1475150427539 TestRomanNumerals.java OK UnitTestSessionAction 1475150427539 TestRomanNumerals.java OK EditAction 1475150474713 TestRomanNumerals.java 1067 4 14 2 +UnitTestCaseAction 1475150474992 TestRomanNumerals.java OK +UnitTestSessionAction 1475150474993 TestRomanNumerals.java OK +EditAction 1475150536978 TestRomanNumerals.java 1070 4 14 2 diff --git a/.besouro/20160929143717113/besouroEpisodes.txt b/.besouro/20160929143717113/besouroEpisodes.txt index f1b8f72..56a7450 100644 --- a/.besouro/20160929143717113/besouroEpisodes.txt +++ b/.besouro/20160929143717113/besouroEpisodes.txt @@ -97,3 +97,4 @@ 1475150359800 regression 1 0 true 1475150389743 regression 1 0 true 1475150427539 regression 1 0 true +1475150474993 refactoring 1A 0 true diff --git a/.besouro/20160929143717113/randomHeuristicEpisodes.txt b/.besouro/20160929143717113/randomHeuristicEpisodes.txt index 4a335fe..695f96e 100644 --- a/.besouro/20160929143717113/randomHeuristicEpisodes.txt +++ b/.besouro/20160929143717113/randomHeuristicEpisodes.txt @@ -8,3 +8,4 @@ 1475150359800 regression 1 0 true 1475150389743 regression 1 0 false 1475150427539 regression 1 0 false +1475150474993 refactoring 1A 0 false diff --git a/.besouro/20160929143717113/zorroEpisodes.txt b/.besouro/20160929143717113/zorroEpisodes.txt index fc202b1..32d6d00 100644 --- a/.besouro/20160929143717113/zorroEpisodes.txt +++ b/.besouro/20160929143717113/zorroEpisodes.txt @@ -8,3 +8,4 @@ 1475150359800 regression 1 34 true 1475150389743 regression 1 29 true 1475150427539 regression 1 37 true +1475150474993 refactoring 1A 47 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index b49ca11..2078ce1 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -48,7 +48,7 @@ public void testConvertingII() { try { converted = rn.convertToInteger("II"); System.out.println("result: " + converted); - assertEquals(2, converted); + assertEquals(true, converted); } catch(Exception e) { } From 8dad2e8263c759ac214f4a05545e249851c87ff5 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 15:02:44 +0300 Subject: [PATCH 016/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ .besouro/20160929143717113/besouroEpisodes.txt | 1 + .besouro/20160929143717113/randomHeuristicEpisodes.txt | 1 + .besouro/20160929143717113/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 4 ++-- 5 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index bee6e37..c1bad2d 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -97,3 +97,6 @@ EditAction 1475150474713 TestRomanNumerals.java 1067 4 14 2 UnitTestCaseAction 1475150474992 TestRomanNumerals.java OK UnitTestSessionAction 1475150474993 TestRomanNumerals.java OK EditAction 1475150536978 TestRomanNumerals.java 1070 4 14 2 +UnitTestCaseAction 1475150537261 TestRomanNumerals.java OK +UnitTestSessionAction 1475150537261 TestRomanNumerals.java OK +EditAction 1475150564420 TestRomanNumerals.java 1068 4 16 3 diff --git a/.besouro/20160929143717113/besouroEpisodes.txt b/.besouro/20160929143717113/besouroEpisodes.txt index 56a7450..9bf68bc 100644 --- a/.besouro/20160929143717113/besouroEpisodes.txt +++ b/.besouro/20160929143717113/besouroEpisodes.txt @@ -98,3 +98,4 @@ 1475150389743 regression 1 0 true 1475150427539 regression 1 0 true 1475150474993 refactoring 1A 0 true +1475150537261 regression 1 0 true diff --git a/.besouro/20160929143717113/randomHeuristicEpisodes.txt b/.besouro/20160929143717113/randomHeuristicEpisodes.txt index 695f96e..d80c834 100644 --- a/.besouro/20160929143717113/randomHeuristicEpisodes.txt +++ b/.besouro/20160929143717113/randomHeuristicEpisodes.txt @@ -9,3 +9,4 @@ 1475150389743 regression 1 0 false 1475150427539 regression 1 0 false 1475150474993 refactoring 1A 0 false +1475150537261 regression 1 0 true diff --git a/.besouro/20160929143717113/zorroEpisodes.txt b/.besouro/20160929143717113/zorroEpisodes.txt index 32d6d00..ae2dbf4 100644 --- a/.besouro/20160929143717113/zorroEpisodes.txt +++ b/.besouro/20160929143717113/zorroEpisodes.txt @@ -9,3 +9,4 @@ 1475150389743 regression 1 29 true 1475150427539 regression 1 37 true 1475150474993 refactoring 1A 47 true +1475150537261 regression 1 62 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 2078ce1..f8503f5 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -47,11 +47,11 @@ public void testConvertingII() { int converted = 0; try { converted = rn.convertToInteger("II"); - System.out.println("result: " + converted); - assertEquals(true, converted); } catch(Exception e) { } System.out.println("result: " + converted); + assertEquals(true, converted); + System.out.println("result: " + converted); } } From 16b3f6e52ca60b7a73caedb7cceae7a862c8ffd3 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 15:02:54 +0300 Subject: [PATCH 017/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ tests/TestRomanNumerals.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index c1bad2d..207063a 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -100,3 +100,6 @@ EditAction 1475150536978 TestRomanNumerals.java 1070 4 14 2 UnitTestCaseAction 1475150537261 TestRomanNumerals.java OK UnitTestSessionAction 1475150537261 TestRomanNumerals.java OK EditAction 1475150564420 TestRomanNumerals.java 1068 4 16 3 +UnitTestCaseAction 1475150564700 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475150564701 TestRomanNumerals.java FAIL +EditAction 1475150574452 TestRomanNumerals.java 1065 4 16 3 diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index f8503f5..87d9639 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -51,7 +51,7 @@ public void testConvertingII() { catch(Exception e) { } System.out.println("result: " + converted); - assertEquals(true, converted); + assertEquals(2, converted); System.out.println("result: " + converted); } } From adb0054f9ea8bdd535b4edc4df30328bff3c31f8 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 15:03:37 +0300 Subject: [PATCH 018/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ tests/TestRomanNumerals.java | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 207063a..6371266 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -103,3 +103,6 @@ EditAction 1475150564420 TestRomanNumerals.java 1068 4 16 3 UnitTestCaseAction 1475150564700 TestRomanNumerals.java FAIL UnitTestSessionAction 1475150564701 TestRomanNumerals.java FAIL EditAction 1475150574452 TestRomanNumerals.java 1065 4 16 3 +UnitTestCaseAction 1475150574730 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475150574731 TestRomanNumerals.java FAIL +EditAction 1475150617075 TestRomanNumerals.java 973 4 14 3 diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 87d9639..478e240 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -50,8 +50,6 @@ public void testConvertingII() { } catch(Exception e) { } - System.out.println("result: " + converted); assertEquals(2, converted); - System.out.println("result: " + converted); } } From 41c9d3a6a2cd267b55ad6ea3c675ebd950471262 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 15:19:08 +0300 Subject: [PATCH 019/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ src/RomanNumerals.java | 12 ++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 6371266..7b16933 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -106,3 +106,6 @@ EditAction 1475150574452 TestRomanNumerals.java 1065 4 16 3 UnitTestCaseAction 1475150574730 TestRomanNumerals.java FAIL UnitTestSessionAction 1475150574731 TestRomanNumerals.java FAIL EditAction 1475150617075 TestRomanNumerals.java 973 4 14 3 +UnitTestCaseAction 1475150618320 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475150618320 TestRomanNumerals.java FAIL +EditAction 1475151548879 RomanNumerals.java 486 1 3 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 6935141..e9405b2 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -7,9 +7,13 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ } } - if(romanNum == "I") - return 1; - else - return 0; + for(int c = 0; c < romanNum.length();c++) { + if(romanNum == "I") + return 1; + else if (romanNum == "II") + return 2; + } + + return 0; } } From 6550e07aaacfb3dea57e72c9676d921099168512 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 15:20:56 +0300 Subject: [PATCH 020/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 7 +++++++ tests/TestRomanNumerals.java | 12 ++++++++++++ 2 files changed, 19 insertions(+) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 7b16933..5e7d73c 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -109,3 +109,10 @@ EditAction 1475150617075 TestRomanNumerals.java 973 4 14 3 UnitTestCaseAction 1475150618320 TestRomanNumerals.java FAIL UnitTestSessionAction 1475150618320 TestRomanNumerals.java FAIL EditAction 1475151548879 RomanNumerals.java 486 1 3 0 +UnitTestCaseAction 1475151551077 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475151551077 TestRomanNumerals.java FAIL +RefactoringAction 1475151569552 TestRomanNumerals.java ADD void test FIELD +RefactoringAction 1475151572067 TestRomanNumerals.java RENAME test=>void testConverting FIELD +RefactoringAction 1475151573579 TestRomanNumerals.java RENAME testConverting=>void testConvertingIII FIELD +RefactoringAction 1475151575093 TestRomanNumerals.java RENAME testConvertingIII=>void testConvertingIII() METHOD +EditAction 1475151656453 TestRomanNumerals.java 1194 5 18 4 diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 478e240..0eb7ed1 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -52,4 +52,16 @@ public void testConvertingII() { } assertEquals(2, converted); } + + @Test + public void testConvertingIII(){ + RomanNumerals rn = new RomanNumerals(); + int converted = 0; + try { + converted = rn.convertToInteger("III"); + } + catch(Exception e) { + } + assertEquals(3, converted); + } } From f98189016caf3ace49b5cdcb9e2153c160324e19 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 15:21:37 +0300 Subject: [PATCH 021/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ src/RomanNumerals.java | 11 +++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 5e7d73c..8d17fc8 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -116,3 +116,6 @@ RefactoringAction 1475151572067 TestRomanNumerals.java RENAME test=>void testCon RefactoringAction 1475151573579 TestRomanNumerals.java RENAME testConverting=>void testConvertingIII FIELD RefactoringAction 1475151575093 TestRomanNumerals.java RENAME testConvertingIII=>void testConvertingIII() METHOD EditAction 1475151656453 TestRomanNumerals.java 1194 5 18 4 +UnitTestCaseAction 1475151656722 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475151656722 TestRomanNumerals.java FAIL +EditAction 1475151697251 RomanNumerals.java 492 1 4 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index e9405b2..8279ce1 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -7,11 +7,14 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ } } + + if(romanNum == "I") + return 1; + else if (romanNum == "II") + return 2; + for(int c = 0; c < romanNum.length();c++) { - if(romanNum == "I") - return 1; - else if (romanNum == "II") - return 2; + } return 0; From db540b3ddf8e63b27f48b6c464ec67de1428b8fb Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 15:22:06 +0300 Subject: [PATCH 022/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ src/RomanNumerals.java | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 8d17fc8..90d4294 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -119,3 +119,6 @@ EditAction 1475151656453 TestRomanNumerals.java 1194 5 18 4 UnitTestCaseAction 1475151656722 TestRomanNumerals.java FAIL UnitTestSessionAction 1475151656722 TestRomanNumerals.java FAIL EditAction 1475151697251 RomanNumerals.java 492 1 4 0 +UnitTestCaseAction 1475151697539 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475151697539 TestRomanNumerals.java FAIL +EditAction 1475151726035 RomanNumerals.java 504 1 4 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 8279ce1..124a14e 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -8,10 +8,12 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ } - if(romanNum == "I") + if(romanNum == "I") { return 1; - else if (romanNum == "II") + } + else if (romanNum == "II") { return 2; + } for(int c = 0; c < romanNum.length();c++) { From 9ff0954da98f4028a8e72f2b985139c4a7cd2afd Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 15:23:27 +0300 Subject: [PATCH 023/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ src/RomanNumerals.java | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 90d4294..a7cf504 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -122,3 +122,6 @@ EditAction 1475151697251 RomanNumerals.java 492 1 4 0 UnitTestCaseAction 1475151697539 TestRomanNumerals.java FAIL UnitTestSessionAction 1475151697539 TestRomanNumerals.java FAIL EditAction 1475151726035 RomanNumerals.java 504 1 4 0 +UnitTestCaseAction 1475151727635 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475151727636 TestRomanNumerals.java FAIL +EditAction 1475151807949 RomanNumerals.java 505 1 4 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 124a14e..82a56f3 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -11,8 +11,8 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ if(romanNum == "I") { return 1; } - else if (romanNum == "II") { - return 2; + else if (romanNum == "III") { + return 3; } for(int c = 0; c < romanNum.length();c++) { From 04bd10f870fdc6937ed7096fbb4d4d949f397a73 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 15:25:15 +0300 Subject: [PATCH 024/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ src/RomanNumerals.java | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index a7cf504..05895c0 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -125,3 +125,6 @@ EditAction 1475151726035 RomanNumerals.java 504 1 4 0 UnitTestCaseAction 1475151727635 TestRomanNumerals.java FAIL UnitTestSessionAction 1475151727636 TestRomanNumerals.java FAIL EditAction 1475151807949 RomanNumerals.java 505 1 4 0 +UnitTestCaseAction 1475151811304 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475151811305 TestRomanNumerals.java FAIL +EditAction 1475151915812 RomanNumerals.java 568 1 4 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 82a56f3..a150f97 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -8,10 +8,13 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ } - if(romanNum == "I") { + if(romanNum.equals("I")) { return 1; } - else if (romanNum == "III") { + else if (romanNum.equals("II")) { + return 2; + } + else if (romanNum.equals("III")) { return 3; } From 7caaa097cdf2b3ad36affd69649956281a294831 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 15:27:20 +0300 Subject: [PATCH 025/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 5 +++++ src/RomanNumerals.java | 2 ++ 2 files changed, 7 insertions(+) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 05895c0..f5ca063 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -128,3 +128,8 @@ EditAction 1475151807949 RomanNumerals.java 505 1 4 0 UnitTestCaseAction 1475151811304 TestRomanNumerals.java FAIL UnitTestSessionAction 1475151811305 TestRomanNumerals.java FAIL EditAction 1475151915812 RomanNumerals.java 568 1 4 0 +UnitTestCaseAction 1475151919895 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475151919895 TestRomanNumerals.java FAIL +UnitTestCaseAction 1475151932547 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475151932548 TestRomanNumerals.java FAIL +EditAction 1475152040486 RomanNumerals.java 608 1 4 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index a150f97..61a7d7e 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -17,6 +17,8 @@ else if (romanNum.equals("II")) { else if (romanNum.equals("III")) { return 3; } + else + System.out.println(romanNum); for(int c = 0; c < romanNum.length();c++) { From 79058dff09651dbd6e2a88f4277fd87b7340feeb Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 15:27:35 +0300 Subject: [PATCH 026/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ src/RomanNumerals.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index f5ca063..faedae3 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -133,3 +133,6 @@ UnitTestSessionAction 1475151919895 TestRomanNumerals.java FAIL UnitTestCaseAction 1475151932547 TestRomanNumerals.java FAIL UnitTestSessionAction 1475151932548 TestRomanNumerals.java FAIL EditAction 1475152040486 RomanNumerals.java 608 1 4 0 +UnitTestCaseAction 1475152040748 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475152040749 TestRomanNumerals.java FAIL +EditAction 1475152055666 RomanNumerals.java 613 1 4 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 61a7d7e..ba23197 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -18,7 +18,7 @@ else if (romanNum.equals("III")) { return 3; } else - System.out.println(romanNum); + System.out.println("" + romanNum); for(int c = 0; c < romanNum.length();c++) { From 8319049828188534b7af80226ba91f62b62c8f8c Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 15:29:46 +0300 Subject: [PATCH 027/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ src/RomanNumerals.java | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index faedae3..bd405e4 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -136,3 +136,6 @@ EditAction 1475152040486 RomanNumerals.java 608 1 4 0 UnitTestCaseAction 1475152040748 TestRomanNumerals.java FAIL UnitTestSessionAction 1475152040749 TestRomanNumerals.java FAIL EditAction 1475152055666 RomanNumerals.java 613 1 4 0 +UnitTestCaseAction 1475152055937 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475152055938 TestRomanNumerals.java FAIL +EditAction 1475152186642 RomanNumerals.java 718 1 5 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index ba23197..26f214f 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -1,6 +1,7 @@ public class RomanNumerals { public int convertToInteger(String romanNum) throws RomanNumeralsException{ + String s = romanNum; for(char c : romanNum.toCharArray()) { if(c != 'I' || c != 'V' || c != 'X' || c != 'L' || c != 'C' || c != 'D' || c != 'M') { throw new RomanNumeralsException("Roman Numeral to be converted isn't valid"); @@ -12,13 +13,16 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ return 1; } else if (romanNum.equals("II")) { + System.out.println("" + romanNum); return 2; } else if (romanNum.equals("III")) { + System.out.println("" + romanNum); return 3; } - else + else { System.out.println("" + romanNum); + } for(int c = 0; c < romanNum.length();c++) { From 0006eb3112b50147c56c63eee76ac65aec6381bd Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 15:31:27 +0300 Subject: [PATCH 028/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 5 +++++ src/RomanNumerals.java | 12 +++--------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index bd405e4..5782077 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -139,3 +139,8 @@ EditAction 1475152055666 RomanNumerals.java 613 1 4 0 UnitTestCaseAction 1475152055937 TestRomanNumerals.java FAIL UnitTestSessionAction 1475152055938 TestRomanNumerals.java FAIL EditAction 1475152186642 RomanNumerals.java 718 1 5 0 +UnitTestCaseAction 1475152186936 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475152186936 TestRomanNumerals.java FAIL +UnitTestCaseAction 1475152221126 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475152221126 TestRomanNumerals.java FAIL +EditAction 1475152287416 RomanNumerals.java 604 1 4 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 26f214f..563342a 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -1,7 +1,6 @@ public class RomanNumerals { public int convertToInteger(String romanNum) throws RomanNumeralsException{ - String s = romanNum; for(char c : romanNum.toCharArray()) { if(c != 'I' || c != 'V' || c != 'X' || c != 'L' || c != 'C' || c != 'D' || c != 'M') { throw new RomanNumeralsException("Roman Numeral to be converted isn't valid"); @@ -9,20 +8,15 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ } - if(romanNum.equals("I")) { + if(romanNum.equals(new String("I"))) { return 1; } - else if (romanNum.equals("II")) { - System.out.println("" + romanNum); + else if (romanNum.equals(new String("II"))) { return 2; } - else if (romanNum.equals("III")) { - System.out.println("" + romanNum); + else if (romanNum.equals(new String("III"))) { return 3; } - else { - System.out.println("" + romanNum); - } for(int c = 0; c < romanNum.length();c++) { From 59f549e36c5147c72e7387b9e8e6ee6e8607302b Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 15:32:25 +0300 Subject: [PATCH 029/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ tests/TestRomanNumerals.java | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 5782077..11ec26f 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -144,3 +144,6 @@ UnitTestSessionAction 1475152186936 TestRomanNumerals.java FAIL UnitTestCaseAction 1475152221126 TestRomanNumerals.java FAIL UnitTestSessionAction 1475152221126 TestRomanNumerals.java FAIL EditAction 1475152287416 RomanNumerals.java 604 1 4 0 +UnitTestCaseAction 1475152288753 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475152288754 TestRomanNumerals.java FAIL +EditAction 1475152345528 TestRomanNumerals.java 1181 5 16 3 diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 0eb7ed1..13180cd 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -44,13 +44,13 @@ public void testConvertingA() { @Test public void testConvertingII() { RomanNumerals rn = new RomanNumerals(); - int converted = 0; try { - converted = rn.convertToInteger("II"); + int converted = rn.convertToInteger("II"); + assertEquals(2, converted); } catch(Exception e) { } - assertEquals(2, converted); + } @Test From 491c60f2ba7a40f174cef58488c54b3460ee4c9a Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 15:32:54 +0300 Subject: [PATCH 030/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ tests/TestRomanNumerals.java | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 11ec26f..9303b27 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -147,3 +147,6 @@ EditAction 1475152287416 RomanNumerals.java 604 1 4 0 UnitTestCaseAction 1475152288753 TestRomanNumerals.java FAIL UnitTestSessionAction 1475152288754 TestRomanNumerals.java FAIL EditAction 1475152345528 TestRomanNumerals.java 1181 5 16 3 +UnitTestCaseAction 1475152345793 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475152345793 TestRomanNumerals.java FAIL +EditAction 1475152374386 TestRomanNumerals.java 1167 5 14 2 diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 13180cd..af9c613 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -56,12 +56,12 @@ public void testConvertingII() { @Test public void testConvertingIII(){ RomanNumerals rn = new RomanNumerals(); - int converted = 0; try { - converted = rn.convertToInteger("III"); + int converted = rn.convertToInteger("III"); + assertEquals(3, converted); } catch(Exception e) { } - assertEquals(3, converted); + } } From abaac69e1d3f08922da60e377057418d298ec82e Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 15:33:23 +0300 Subject: [PATCH 031/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 + .../20160929143717113/besouroEpisodes.txt | 118 ++++++++++++++++++ .../randomHeuristicEpisodes.txt | 1 + .besouro/20160929143717113/zorroEpisodes.txt | 1 + src/RomanNumerals.java | 6 +- 5 files changed, 126 insertions(+), 3 deletions(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 9303b27..dee2c65 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -150,3 +150,6 @@ EditAction 1475152345528 TestRomanNumerals.java 1181 5 16 3 UnitTestCaseAction 1475152345793 TestRomanNumerals.java FAIL UnitTestSessionAction 1475152345793 TestRomanNumerals.java FAIL EditAction 1475152374386 TestRomanNumerals.java 1167 5 14 2 +UnitTestCaseAction 1475152374680 TestRomanNumerals.java OK +UnitTestSessionAction 1475152374681 TestRomanNumerals.java OK +EditAction 1475152403079 RomanNumerals.java 568 1 4 0 diff --git a/.besouro/20160929143717113/besouroEpisodes.txt b/.besouro/20160929143717113/besouroEpisodes.txt index 9bf68bc..60d6ddc 100644 --- a/.besouro/20160929143717113/besouroEpisodes.txt +++ b/.besouro/20160929143717113/besouroEpisodes.txt @@ -99,3 +99,121 @@ 1475150427539 regression 1 0 true 1475150474993 refactoring 1A 0 true 1475150537261 regression 1 0 true +1475152374681 test-first 3 1810 true +1475152374682 test-first 3 1810 true +1475152374683 test-first 3 1810 true +1475152374684 test-first 3 1810 true +1475152374685 test-first 3 1810 true +1475152374686 test-first 3 1810 true +1475152374687 test-first 3 1810 true +1475152374688 test-first 3 1810 true +1475152374689 test-first 3 1810 true +1475152374690 test-first 3 1810 true +1475152374691 test-first 3 1810 true +1475152374692 test-first 3 1810 true +1475152374693 test-first 3 1810 true +1475152374694 test-first 3 1810 true +1475152374695 test-first 3 1810 true +1475152374696 test-first 3 1810 true +1475152374697 test-first 3 1810 true +1475152374698 test-first 3 1810 true +1475152374699 test-first 3 1810 true +1475152374700 test-first 3 1810 true +1475152374701 test-first 3 1810 true +1475152374702 test-first 3 1810 true +1475152374703 test-first 3 1810 true +1475152374704 test-first 3 1810 true +1475152374705 test-first 3 1810 true +1475152374706 test-first 3 1810 true +1475152374707 test-first 3 1810 true +1475152374708 test-first 3 1810 true +1475152374709 test-first 3 1810 true +1475152374710 test-first 3 1810 true +1475152374711 test-first 3 1810 true +1475152374712 test-first 3 1810 true +1475152374713 test-first 3 1810 true +1475152374714 test-first 3 1810 true +1475152374715 test-first 3 1810 true +1475152374716 test-first 3 1810 true +1475152374717 test-first 3 1810 true +1475152374718 test-first 3 1810 true +1475152374719 test-first 3 1810 true +1475152374720 test-first 3 1810 true +1475152374721 test-first 3 1810 true +1475152374722 test-first 3 1810 true +1475152374723 test-first 3 1810 true +1475152374724 test-first 3 1810 true +1475152374725 test-first 3 1810 true +1475152374726 test-first 3 1810 true +1475152374727 test-first 3 1810 true +1475152374728 test-first 3 1810 true +1475152374729 test-first 3 1810 true +1475152374730 test-last 1 1810 false +1475152374731 test-first 3 1810 true +1475152374732 test-first 3 1810 true +1475152374733 test-first 3 1810 true +1475152374734 test-first 3 1810 true +1475152374735 test-first 3 1810 true +1475152374736 test-first 3 1810 true +1475152374737 test-first 3 1810 true +1475152374738 test-first 3 1810 true +1475152374739 test-first 3 1810 true +1475152374740 test-first 3 1810 true +1475152374741 test-first 3 1810 true +1475152374742 test-first 3 1810 true +1475152374743 test-first 3 1810 true +1475152374744 test-first 3 1810 true +1475152374745 test-first 3 1810 true +1475152374746 test-first 3 1810 true +1475152374747 test-first 3 1810 true +1475152374748 test-first 3 1810 true +1475152374749 test-first 3 1810 true +1475152374750 test-first 3 1810 true +1475152374751 test-first 3 1810 true +1475152374752 test-first 3 1810 true +1475152374753 test-first 3 1810 true +1475152374754 test-first 3 1810 true +1475152374755 test-first 3 1810 true +1475152374756 test-first 3 1810 true +1475152374757 test-first 3 1810 true +1475152374758 test-first 3 1810 true +1475152374759 test-first 3 1810 true +1475152374760 test-first 3 1810 true +1475152374761 test-first 3 1810 true +1475152374762 test-first 3 1810 true +1475152374763 test-first 3 1810 true +1475152374764 test-first 3 1810 true +1475152374765 test-first 3 1810 true +1475152374766 test-first 3 1810 true +1475152374767 test-first 3 1810 true +1475152374768 test-first 3 1810 true +1475152374769 test-first 3 1810 true +1475152374770 test-first 3 1810 true +1475152374771 test-first 3 1810 true +1475152374772 test-first 3 1810 true +1475152374773 test-first 3 1810 true +1475152374774 test-first 3 1810 true +1475152374775 test-first 3 1810 true +1475152374776 test-first 3 1810 true +1475152374777 test-first 3 1810 true +1475152374778 test-first 3 1810 true +1475152374779 test-first 3 1810 true +1475152374780 test-first 3 1810 true +1475152374781 test-first 3 1810 true +1475152374782 test-first 3 1810 true +1475152374783 test-first 3 1810 true +1475152374784 test-first 3 1810 true +1475152374785 test-first 3 1810 true +1475152374786 test-first 3 1810 true +1475152374787 test-first 3 1810 true +1475152374788 test-first 3 1810 true +1475152374789 test-first 3 1810 true +1475152374790 test-first 3 1810 true +1475152374791 test-first 3 1810 true +1475152374792 test-first 3 1810 true +1475152374793 test-first 3 1810 true +1475152374794 test-first 3 1810 true +1475152374795 test-first 3 1810 true +1475152374796 test-first 3 1810 true +1475152374797 test-first 3 1810 true +1475152374798 test-first 3 1810 true diff --git a/.besouro/20160929143717113/randomHeuristicEpisodes.txt b/.besouro/20160929143717113/randomHeuristicEpisodes.txt index d80c834..c93ee08 100644 --- a/.besouro/20160929143717113/randomHeuristicEpisodes.txt +++ b/.besouro/20160929143717113/randomHeuristicEpisodes.txt @@ -10,3 +10,4 @@ 1475150427539 regression 1 0 false 1475150474993 refactoring 1A 0 false 1475150537261 regression 1 0 true +1475152374681 test-first 3 1810 true diff --git a/.besouro/20160929143717113/zorroEpisodes.txt b/.besouro/20160929143717113/zorroEpisodes.txt index ae2dbf4..dde6e1a 100644 --- a/.besouro/20160929143717113/zorroEpisodes.txt +++ b/.besouro/20160929143717113/zorroEpisodes.txt @@ -10,3 +10,4 @@ 1475150427539 regression 1 37 true 1475150474993 refactoring 1A 47 true 1475150537261 regression 1 62 true +1475152374681 test-first 3 1837 true diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 563342a..a150f97 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -8,13 +8,13 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ } - if(romanNum.equals(new String("I"))) { + if(romanNum.equals("I")) { return 1; } - else if (romanNum.equals(new String("II"))) { + else if (romanNum.equals("II")) { return 2; } - else if (romanNum.equals(new String("III"))) { + else if (romanNum.equals("III")) { return 3; } From 0b5067fd3a8b130b0cd209b4904d70310e01bf0a Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 15:37:00 +0300 Subject: [PATCH 032/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 5 +++++ .besouro/20160929143717113/besouroEpisodes.txt | 1 + .../20160929143717113/randomHeuristicEpisodes.txt | 1 + .besouro/20160929143717113/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 13 +++++++++++++ 5 files changed, 21 insertions(+) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index dee2c65..ec18003 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -153,3 +153,8 @@ EditAction 1475152374386 TestRomanNumerals.java 1167 5 14 2 UnitTestCaseAction 1475152374680 TestRomanNumerals.java OK UnitTestSessionAction 1475152374681 TestRomanNumerals.java OK EditAction 1475152403079 RomanNumerals.java 568 1 4 0 +UnitTestCaseAction 1475152404752 TestRomanNumerals.java OK +UnitTestSessionAction 1475152404752 TestRomanNumerals.java OK +RefactoringAction 1475152501274 TestRomanNumerals.java ADD void testConvertingIIII FIELD +RefactoringAction 1475152502287 TestRomanNumerals.java RENAME testConvertingIIII=>void testConvertingIIII() METHOD +EditAction 1475152620660 TestRomanNumerals.java 1402 6 18 3 diff --git a/.besouro/20160929143717113/besouroEpisodes.txt b/.besouro/20160929143717113/besouroEpisodes.txt index 60d6ddc..08b80d6 100644 --- a/.besouro/20160929143717113/besouroEpisodes.txt +++ b/.besouro/20160929143717113/besouroEpisodes.txt @@ -217,3 +217,4 @@ 1475152374796 test-first 3 1810 true 1475152374797 test-first 3 1810 true 1475152374798 test-first 3 1810 true +1475152404752 refactoring 2A 1 true diff --git a/.besouro/20160929143717113/randomHeuristicEpisodes.txt b/.besouro/20160929143717113/randomHeuristicEpisodes.txt index c93ee08..d09e901 100644 --- a/.besouro/20160929143717113/randomHeuristicEpisodes.txt +++ b/.besouro/20160929143717113/randomHeuristicEpisodes.txt @@ -11,3 +11,4 @@ 1475150474993 refactoring 1A 0 false 1475150537261 regression 1 0 true 1475152374681 test-first 3 1810 true +1475152404752 refactoring 2A 1 true diff --git a/.besouro/20160929143717113/zorroEpisodes.txt b/.besouro/20160929143717113/zorroEpisodes.txt index dde6e1a..b9be69d 100644 --- a/.besouro/20160929143717113/zorroEpisodes.txt +++ b/.besouro/20160929143717113/zorroEpisodes.txt @@ -11,3 +11,4 @@ 1475150474993 refactoring 1A 47 true 1475150537261 regression 1 62 true 1475152374681 test-first 3 1837 true +1475152404752 refactoring 2A 30 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index af9c613..fa72835 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -64,4 +64,17 @@ public void testConvertingIII(){ } } + + @Test + public void testConvertingIIII() { + RomanNumerals rn = new RomanNumerals(); + boolean thrown = false; + try { + rn.convertToInteger("IIII"); + } + catch(Exception e) { + thrown = true; + } + assertEquals(true, thrown); + } } From 3d858e736393ebb4f7d0b39314da74d564f98957 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 15:38:45 +0300 Subject: [PATCH 033/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ .besouro/20160929143717113/besouroEpisodes.txt | 1 + .besouro/20160929143717113/randomHeuristicEpisodes.txt | 1 + .besouro/20160929143717113/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 1 + 5 files changed, 7 insertions(+) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index ec18003..fbe315b 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -158,3 +158,6 @@ UnitTestSessionAction 1475152404752 TestRomanNumerals.java OK RefactoringAction 1475152501274 TestRomanNumerals.java ADD void testConvertingIIII FIELD RefactoringAction 1475152502287 TestRomanNumerals.java RENAME testConvertingIIII=>void testConvertingIIII() METHOD EditAction 1475152620660 TestRomanNumerals.java 1402 6 18 3 +UnitTestCaseAction 1475152620949 TestRomanNumerals.java OK +UnitTestSessionAction 1475152620949 TestRomanNumerals.java OK +EditAction 1475152725049 TestRomanNumerals.java 1441 6 18 3 diff --git a/.besouro/20160929143717113/besouroEpisodes.txt b/.besouro/20160929143717113/besouroEpisodes.txt index 08b80d6..338ab51 100644 --- a/.besouro/20160929143717113/besouroEpisodes.txt +++ b/.besouro/20160929143717113/besouroEpisodes.txt @@ -218,3 +218,4 @@ 1475152374797 test-first 3 1810 true 1475152374798 test-first 3 1810 true 1475152404752 refactoring 2A 1 true +1475152620949 test-addition 1 119 true diff --git a/.besouro/20160929143717113/randomHeuristicEpisodes.txt b/.besouro/20160929143717113/randomHeuristicEpisodes.txt index d09e901..cb39094 100644 --- a/.besouro/20160929143717113/randomHeuristicEpisodes.txt +++ b/.besouro/20160929143717113/randomHeuristicEpisodes.txt @@ -12,3 +12,4 @@ 1475150537261 regression 1 0 true 1475152374681 test-first 3 1810 true 1475152404752 refactoring 2A 1 true +1475152620949 test-addition 1 119 false diff --git a/.besouro/20160929143717113/zorroEpisodes.txt b/.besouro/20160929143717113/zorroEpisodes.txt index b9be69d..6ccb68d 100644 --- a/.besouro/20160929143717113/zorroEpisodes.txt +++ b/.besouro/20160929143717113/zorroEpisodes.txt @@ -12,3 +12,4 @@ 1475150537261 regression 1 62 true 1475152374681 test-first 3 1837 true 1475152404752 refactoring 2A 30 true +1475152620949 test-addition 1 216 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index fa72835..0d19a3c 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -73,6 +73,7 @@ public void testConvertingIIII() { rn.convertToInteger("IIII"); } catch(Exception e) { + System.out.println(e.getMessage()); thrown = true; } assertEquals(true, thrown); From d37edb05c18897eb17666333ba6be367d0c49687 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 15:38:55 +0300 Subject: [PATCH 034/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ .besouro/20160929143717113/besouroEpisodes.txt | 1 + .besouro/20160929143717113/randomHeuristicEpisodes.txt | 1 + .besouro/20160929143717113/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 2 +- 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index fbe315b..fb4d9b5 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -161,3 +161,6 @@ EditAction 1475152620660 TestRomanNumerals.java 1402 6 18 3 UnitTestCaseAction 1475152620949 TestRomanNumerals.java OK UnitTestSessionAction 1475152620949 TestRomanNumerals.java OK EditAction 1475152725049 TestRomanNumerals.java 1441 6 18 3 +UnitTestCaseAction 1475152725351 TestRomanNumerals.java OK +UnitTestSessionAction 1475152725351 TestRomanNumerals.java OK +EditAction 1475152735430 TestRomanNumerals.java 1440 6 18 3 diff --git a/.besouro/20160929143717113/besouroEpisodes.txt b/.besouro/20160929143717113/besouroEpisodes.txt index 338ab51..fa377eb 100644 --- a/.besouro/20160929143717113/besouroEpisodes.txt +++ b/.besouro/20160929143717113/besouroEpisodes.txt @@ -219,3 +219,4 @@ 1475152374798 test-first 3 1810 true 1475152404752 refactoring 2A 1 true 1475152620949 test-addition 1 119 true +1475152725351 regression 1 0 true diff --git a/.besouro/20160929143717113/randomHeuristicEpisodes.txt b/.besouro/20160929143717113/randomHeuristicEpisodes.txt index cb39094..ba58bba 100644 --- a/.besouro/20160929143717113/randomHeuristicEpisodes.txt +++ b/.besouro/20160929143717113/randomHeuristicEpisodes.txt @@ -13,3 +13,4 @@ 1475152374681 test-first 3 1810 true 1475152404752 refactoring 2A 1 true 1475152620949 test-addition 1 119 false +1475152725351 regression 1 0 true diff --git a/.besouro/20160929143717113/zorroEpisodes.txt b/.besouro/20160929143717113/zorroEpisodes.txt index 6ccb68d..a02e43f 100644 --- a/.besouro/20160929143717113/zorroEpisodes.txt +++ b/.besouro/20160929143717113/zorroEpisodes.txt @@ -13,3 +13,4 @@ 1475152374681 test-first 3 1837 true 1475152404752 refactoring 2A 30 true 1475152620949 test-addition 1 216 true +1475152725351 regression 1 104 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 0d19a3c..ede169a 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -70,7 +70,7 @@ public void testConvertingIIII() { RomanNumerals rn = new RomanNumerals(); boolean thrown = false; try { - rn.convertToInteger("IIII"); + rn.convertToInteger("III"); } catch(Exception e) { System.out.println(e.getMessage()); From 8b1737fe6db72979322f7120ad2aa3d3e3c8c147 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 15:39:16 +0300 Subject: [PATCH 035/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ .besouro/20160929143717113/besouroEpisodes.txt | 1 + .besouro/20160929143717113/randomHeuristicEpisodes.txt | 1 + .besouro/20160929143717113/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 2 +- 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index fb4d9b5..bba5d6a 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -164,3 +164,6 @@ EditAction 1475152725049 TestRomanNumerals.java 1441 6 18 3 UnitTestCaseAction 1475152725351 TestRomanNumerals.java OK UnitTestSessionAction 1475152725351 TestRomanNumerals.java OK EditAction 1475152735430 TestRomanNumerals.java 1440 6 18 3 +UnitTestCaseAction 1475152735723 TestRomanNumerals.java OK +UnitTestSessionAction 1475152735724 TestRomanNumerals.java OK +EditAction 1475152756045 TestRomanNumerals.java 1441 6 18 3 diff --git a/.besouro/20160929143717113/besouroEpisodes.txt b/.besouro/20160929143717113/besouroEpisodes.txt index fa377eb..533b510 100644 --- a/.besouro/20160929143717113/besouroEpisodes.txt +++ b/.besouro/20160929143717113/besouroEpisodes.txt @@ -220,3 +220,4 @@ 1475152404752 refactoring 2A 1 true 1475152620949 test-addition 1 119 true 1475152725351 regression 1 0 true +1475152735724 regression 1 0 true diff --git a/.besouro/20160929143717113/randomHeuristicEpisodes.txt b/.besouro/20160929143717113/randomHeuristicEpisodes.txt index ba58bba..1555e22 100644 --- a/.besouro/20160929143717113/randomHeuristicEpisodes.txt +++ b/.besouro/20160929143717113/randomHeuristicEpisodes.txt @@ -14,3 +14,4 @@ 1475152404752 refactoring 2A 1 true 1475152620949 test-addition 1 119 false 1475152725351 regression 1 0 true +1475152735724 regression 1 0 false diff --git a/.besouro/20160929143717113/zorroEpisodes.txt b/.besouro/20160929143717113/zorroEpisodes.txt index a02e43f..fa6f3fb 100644 --- a/.besouro/20160929143717113/zorroEpisodes.txt +++ b/.besouro/20160929143717113/zorroEpisodes.txt @@ -14,3 +14,4 @@ 1475152404752 refactoring 2A 30 true 1475152620949 test-addition 1 216 true 1475152725351 regression 1 104 true +1475152735724 regression 1 10 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index ede169a..0d19a3c 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -70,7 +70,7 @@ public void testConvertingIIII() { RomanNumerals rn = new RomanNumerals(); boolean thrown = false; try { - rn.convertToInteger("III"); + rn.convertToInteger("IIII"); } catch(Exception e) { System.out.println(e.getMessage()); From 62491fd62d8cf8ebda64a08555fc7af519a97f1a Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 15:39:42 +0300 Subject: [PATCH 036/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ .besouro/20160929143717113/besouroEpisodes.txt | 1 + .besouro/20160929143717113/randomHeuristicEpisodes.txt | 1 + .besouro/20160929143717113/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 2 +- 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index bba5d6a..91d92e3 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -167,3 +167,6 @@ EditAction 1475152735430 TestRomanNumerals.java 1440 6 18 3 UnitTestCaseAction 1475152735723 TestRomanNumerals.java OK UnitTestSessionAction 1475152735724 TestRomanNumerals.java OK EditAction 1475152756045 TestRomanNumerals.java 1441 6 18 3 +UnitTestCaseAction 1475152756326 TestRomanNumerals.java OK +UnitTestSessionAction 1475152756326 TestRomanNumerals.java OK +EditAction 1475152782784 TestRomanNumerals.java 1437 6 18 3 diff --git a/.besouro/20160929143717113/besouroEpisodes.txt b/.besouro/20160929143717113/besouroEpisodes.txt index 533b510..cd878d1 100644 --- a/.besouro/20160929143717113/besouroEpisodes.txt +++ b/.besouro/20160929143717113/besouroEpisodes.txt @@ -221,3 +221,4 @@ 1475152620949 test-addition 1 119 true 1475152725351 regression 1 0 true 1475152735724 regression 1 0 true +1475152756326 regression 1 0 true diff --git a/.besouro/20160929143717113/randomHeuristicEpisodes.txt b/.besouro/20160929143717113/randomHeuristicEpisodes.txt index 1555e22..49de962 100644 --- a/.besouro/20160929143717113/randomHeuristicEpisodes.txt +++ b/.besouro/20160929143717113/randomHeuristicEpisodes.txt @@ -15,3 +15,4 @@ 1475152620949 test-addition 1 119 false 1475152725351 regression 1 0 true 1475152735724 regression 1 0 false +1475152756326 regression 1 0 false diff --git a/.besouro/20160929143717113/zorroEpisodes.txt b/.besouro/20160929143717113/zorroEpisodes.txt index fa6f3fb..88dfd94 100644 --- a/.besouro/20160929143717113/zorroEpisodes.txt +++ b/.besouro/20160929143717113/zorroEpisodes.txt @@ -15,3 +15,4 @@ 1475152620949 test-addition 1 216 true 1475152725351 regression 1 104 true 1475152735724 regression 1 10 true +1475152756326 regression 1 20 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 0d19a3c..7df771d 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -70,7 +70,7 @@ public void testConvertingIIII() { RomanNumerals rn = new RomanNumerals(); boolean thrown = false; try { - rn.convertToInteger("IIII"); + rn.convertToInteger(""); } catch(Exception e) { System.out.println(e.getMessage()); From e6ca2824080aaa5683d29bc63e41fb2470a755f3 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 15:39:55 +0300 Subject: [PATCH 037/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ tests/TestRomanNumerals.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 91d92e3..d164e44 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -170,3 +170,6 @@ EditAction 1475152756045 TestRomanNumerals.java 1441 6 18 3 UnitTestCaseAction 1475152756326 TestRomanNumerals.java OK UnitTestSessionAction 1475152756326 TestRomanNumerals.java OK EditAction 1475152782784 TestRomanNumerals.java 1437 6 18 3 +UnitTestCaseAction 1475152783067 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475152783068 TestRomanNumerals.java FAIL +EditAction 1475152795422 TestRomanNumerals.java 1438 6 18 3 diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 7df771d..bdd462c 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -70,7 +70,7 @@ public void testConvertingIIII() { RomanNumerals rn = new RomanNumerals(); boolean thrown = false; try { - rn.convertToInteger(""); + rn.convertToInteger("I"); } catch(Exception e) { System.out.println(e.getMessage()); From fa37ef65461874cb37e52c29681e9249be4e0b20 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 15:40:42 +0300 Subject: [PATCH 038/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ .besouro/20160929143717113/besouroEpisodes.txt | 1 + .besouro/20160929143717113/randomHeuristicEpisodes.txt | 1 + .besouro/20160929143717113/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 2 +- 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index d164e44..f52b06b 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -173,3 +173,6 @@ EditAction 1475152782784 TestRomanNumerals.java 1437 6 18 3 UnitTestCaseAction 1475152783067 TestRomanNumerals.java FAIL UnitTestSessionAction 1475152783068 TestRomanNumerals.java FAIL EditAction 1475152795422 TestRomanNumerals.java 1438 6 18 3 +UnitTestCaseAction 1475152795714 TestRomanNumerals.java OK +UnitTestSessionAction 1475152795715 TestRomanNumerals.java OK +EditAction 1475152842901 TestRomanNumerals.java 1451 6 18 3 diff --git a/.besouro/20160929143717113/besouroEpisodes.txt b/.besouro/20160929143717113/besouroEpisodes.txt index cd878d1..a29de6d 100644 --- a/.besouro/20160929143717113/besouroEpisodes.txt +++ b/.besouro/20160929143717113/besouroEpisodes.txt @@ -222,3 +222,4 @@ 1475152725351 regression 1 0 true 1475152735724 regression 1 0 true 1475152756326 regression 1 0 true +1475152795715 regression 2 12 true diff --git a/.besouro/20160929143717113/randomHeuristicEpisodes.txt b/.besouro/20160929143717113/randomHeuristicEpisodes.txt index 49de962..2e03dc7 100644 --- a/.besouro/20160929143717113/randomHeuristicEpisodes.txt +++ b/.besouro/20160929143717113/randomHeuristicEpisodes.txt @@ -16,3 +16,4 @@ 1475152725351 regression 1 0 true 1475152735724 regression 1 0 false 1475152756326 regression 1 0 false +1475152795715 regression 2 12 false diff --git a/.besouro/20160929143717113/zorroEpisodes.txt b/.besouro/20160929143717113/zorroEpisodes.txt index 88dfd94..6cfe577 100644 --- a/.besouro/20160929143717113/zorroEpisodes.txt +++ b/.besouro/20160929143717113/zorroEpisodes.txt @@ -16,3 +16,4 @@ 1475152725351 regression 1 104 true 1475152735724 regression 1 10 true 1475152756326 regression 1 20 true +1475152795715 regression 2 39 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index bdd462c..650da1f 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -72,7 +72,7 @@ public void testConvertingIIII() { try { rn.convertToInteger("I"); } - catch(Exception e) { + catch(RomanNumeralsException e) { System.out.println(e.getMessage()); thrown = true; } From 820dae85b06facf2cb48246e61205c00d34c71e7 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 15:41:13 +0300 Subject: [PATCH 039/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ .besouro/20160929143717113/besouroEpisodes.txt | 1 + .besouro/20160929143717113/randomHeuristicEpisodes.txt | 1 + .besouro/20160929143717113/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 1 + 5 files changed, 7 insertions(+) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index f52b06b..0883240 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -176,3 +176,6 @@ EditAction 1475152795422 TestRomanNumerals.java 1438 6 18 3 UnitTestCaseAction 1475152795714 TestRomanNumerals.java OK UnitTestSessionAction 1475152795715 TestRomanNumerals.java OK EditAction 1475152842901 TestRomanNumerals.java 1451 6 18 3 +UnitTestCaseAction 1475152843182 TestRomanNumerals.java OK +UnitTestSessionAction 1475152843182 TestRomanNumerals.java OK +EditAction 1475152873756 TestRomanNumerals.java 1490 6 18 3 diff --git a/.besouro/20160929143717113/besouroEpisodes.txt b/.besouro/20160929143717113/besouroEpisodes.txt index a29de6d..d8e16ac 100644 --- a/.besouro/20160929143717113/besouroEpisodes.txt +++ b/.besouro/20160929143717113/besouroEpisodes.txt @@ -223,3 +223,4 @@ 1475152735724 regression 1 0 true 1475152756326 regression 1 0 true 1475152795715 regression 2 12 true +1475152843182 regression 1 0 true diff --git a/.besouro/20160929143717113/randomHeuristicEpisodes.txt b/.besouro/20160929143717113/randomHeuristicEpisodes.txt index 2e03dc7..49bbd2b 100644 --- a/.besouro/20160929143717113/randomHeuristicEpisodes.txt +++ b/.besouro/20160929143717113/randomHeuristicEpisodes.txt @@ -17,3 +17,4 @@ 1475152735724 regression 1 0 false 1475152756326 regression 1 0 false 1475152795715 regression 2 12 false +1475152843182 regression 1 0 true diff --git a/.besouro/20160929143717113/zorroEpisodes.txt b/.besouro/20160929143717113/zorroEpisodes.txt index 6cfe577..d4fb595 100644 --- a/.besouro/20160929143717113/zorroEpisodes.txt +++ b/.besouro/20160929143717113/zorroEpisodes.txt @@ -17,3 +17,4 @@ 1475152735724 regression 1 10 true 1475152756326 regression 1 20 true 1475152795715 regression 2 39 true +1475152843182 regression 1 47 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 650da1f..8c733ea 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -12,6 +12,7 @@ public void testConvertingI() { assertEquals(1, converted); } catch(Exception e) { + System.out.println(e.getMessage()); } } From 07f6d35bd6b49151a22a7551d022766ba30aa3d8 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 15:43:46 +0300 Subject: [PATCH 040/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ .besouro/20160929143717113/besouroEpisodes.txt | 1 + .besouro/20160929143717113/randomHeuristicEpisodes.txt | 1 + .besouro/20160929143717113/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 1 - 5 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 0883240..111babd 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -179,3 +179,6 @@ EditAction 1475152842901 TestRomanNumerals.java 1451 6 18 3 UnitTestCaseAction 1475152843182 TestRomanNumerals.java OK UnitTestSessionAction 1475152843182 TestRomanNumerals.java OK EditAction 1475152873756 TestRomanNumerals.java 1490 6 18 3 +UnitTestCaseAction 1475152874035 TestRomanNumerals.java OK +UnitTestSessionAction 1475152874036 TestRomanNumerals.java OK +EditAction 1475153026011 TestRomanNumerals.java 1451 6 18 3 diff --git a/.besouro/20160929143717113/besouroEpisodes.txt b/.besouro/20160929143717113/besouroEpisodes.txt index d8e16ac..11b1c68 100644 --- a/.besouro/20160929143717113/besouroEpisodes.txt +++ b/.besouro/20160929143717113/besouroEpisodes.txt @@ -224,3 +224,4 @@ 1475152756326 regression 1 0 true 1475152795715 regression 2 12 true 1475152843182 regression 1 0 true +1475152874036 regression 1 0 true diff --git a/.besouro/20160929143717113/randomHeuristicEpisodes.txt b/.besouro/20160929143717113/randomHeuristicEpisodes.txt index 49bbd2b..1c32330 100644 --- a/.besouro/20160929143717113/randomHeuristicEpisodes.txt +++ b/.besouro/20160929143717113/randomHeuristicEpisodes.txt @@ -18,3 +18,4 @@ 1475152756326 regression 1 0 false 1475152795715 regression 2 12 false 1475152843182 regression 1 0 true +1475152874036 regression 1 0 false diff --git a/.besouro/20160929143717113/zorroEpisodes.txt b/.besouro/20160929143717113/zorroEpisodes.txt index d4fb595..73e8011 100644 --- a/.besouro/20160929143717113/zorroEpisodes.txt +++ b/.besouro/20160929143717113/zorroEpisodes.txt @@ -18,3 +18,4 @@ 1475152756326 regression 1 20 true 1475152795715 regression 2 39 true 1475152843182 regression 1 47 true +1475152874036 regression 1 30 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 8c733ea..650da1f 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -12,7 +12,6 @@ public void testConvertingI() { assertEquals(1, converted); } catch(Exception e) { - System.out.println(e.getMessage()); } } From 06f10e35bf8f742dea54ccdb167f85d027e830b6 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 15:43:46 +0300 Subject: [PATCH 041/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 1 + src/RomanNumerals.java | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 111babd..2f74034 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -182,3 +182,4 @@ EditAction 1475152873756 TestRomanNumerals.java 1490 6 18 3 UnitTestCaseAction 1475152874035 TestRomanNumerals.java OK UnitTestSessionAction 1475152874036 TestRomanNumerals.java OK EditAction 1475153026011 TestRomanNumerals.java 1451 6 18 3 +EditAction 1475153026116 RomanNumerals.java 582 1 4 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index a150f97..415342c 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -2,9 +2,11 @@ public class RomanNumerals { public int convertToInteger(String romanNum) throws RomanNumeralsException{ for(char c : romanNum.toCharArray()) { - if(c != 'I' || c != 'V' || c != 'X' || c != 'L' || c != 'C' || c != 'D' || c != 'M') { - throw new RomanNumeralsException("Roman Numeral to be converted isn't valid"); + if(c == 'I' || c == 'V' || c == 'X' || c == 'L' || c == 'C' || c == 'D' || c == 'M') { + } + else + throw new RomanNumeralsException("Roman Numeral to be converted isn't valid"); } From 1681b47e6c6c9e021441185c3139185eb6bbcfdd Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 15:44:18 +0300 Subject: [PATCH 042/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ tests/TestRomanNumerals.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 2f74034..fea5592 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -183,3 +183,6 @@ UnitTestCaseAction 1475152874035 TestRomanNumerals.java OK UnitTestSessionAction 1475152874036 TestRomanNumerals.java OK EditAction 1475153026011 TestRomanNumerals.java 1451 6 18 3 EditAction 1475153026116 RomanNumerals.java 582 1 4 0 +UnitTestCaseAction 1475153026371 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475153026372 TestRomanNumerals.java FAIL +EditAction 1475153058923 TestRomanNumerals.java 1454 6 18 3 diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 650da1f..a0cc39e 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -70,7 +70,7 @@ public void testConvertingIIII() { RomanNumerals rn = new RomanNumerals(); boolean thrown = false; try { - rn.convertToInteger("I"); + rn.convertToInteger("IIII"); } catch(RomanNumeralsException e) { System.out.println(e.getMessage()); From 5ad39cc8c3f2b6492a9a6deec2ab4033ab19de89 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 15:59:02 +0300 Subject: [PATCH 043/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ src/RomanNumerals.java | 8 ++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index fea5592..07cb5eb 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -186,3 +186,6 @@ EditAction 1475153026116 RomanNumerals.java 582 1 4 0 UnitTestCaseAction 1475153026371 TestRomanNumerals.java FAIL UnitTestSessionAction 1475153026372 TestRomanNumerals.java FAIL EditAction 1475153058923 TestRomanNumerals.java 1454 6 18 3 +UnitTestCaseAction 1475153060179 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475153060179 TestRomanNumerals.java FAIL +EditAction 1475153942496 RomanNumerals.java 700 1 5 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 415342c..520d170 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -19,9 +19,13 @@ else if (romanNum.equals("II")) { else if (romanNum.equals("III")) { return 3; } - + char currentChar; for(int c = 0; c < romanNum.length();c++) { - + currentChar = romanNum.charAt(c); + while(romanNum.charAt(c+1) == currentChar) { + c++; + } + } return 0; From 2c850b4c9c1540cda92fec93cce35757be07bb00 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 15:59:44 +0300 Subject: [PATCH 044/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ src/RomanNumerals.java | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 07cb5eb..67ccaa0 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -189,3 +189,6 @@ EditAction 1475153058923 TestRomanNumerals.java 1454 6 18 3 UnitTestCaseAction 1475153060179 TestRomanNumerals.java FAIL UnitTestSessionAction 1475153060179 TestRomanNumerals.java FAIL EditAction 1475153942496 RomanNumerals.java 700 1 5 0 +UnitTestCaseAction 1475153943487 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475153943488 TestRomanNumerals.java FAIL +EditAction 1475153984399 RomanNumerals.java 734 1 5 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 520d170..8aeaba0 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -23,7 +23,8 @@ else if (romanNum.equals("III")) { for(int c = 0; c < romanNum.length();c++) { currentChar = romanNum.charAt(c); while(romanNum.charAt(c+1) == currentChar) { - c++; + if( c < romanNum.length()-1) + c++; } } From ab662f0f7b4d33c731f8364cb0217becaaa44429 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 16:01:37 +0300 Subject: [PATCH 045/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ src/RomanNumerals.java | 11 ++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 67ccaa0..8287a2c 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -192,3 +192,6 @@ EditAction 1475153942496 RomanNumerals.java 700 1 5 0 UnitTestCaseAction 1475153943487 TestRomanNumerals.java FAIL UnitTestSessionAction 1475153943488 TestRomanNumerals.java FAIL EditAction 1475153984399 RomanNumerals.java 734 1 5 0 +UnitTestCaseAction 1475153984671 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475153984671 TestRomanNumerals.java FAIL +EditAction 1475154096999 RomanNumerals.java 890 1 6 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 8aeaba0..4d39399 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -20,13 +20,18 @@ else if (romanNum.equals("III")) { return 3; } char currentChar; + int counter; for(int c = 0; c < romanNum.length();c++) { currentChar = romanNum.charAt(c); + counter = 1; while(romanNum.charAt(c+1) == currentChar) { - if( c < romanNum.length()-1) + if( c < romanNum.length()-1) { c++; - } - + counter++; + if(counter > 3) + throw new RomanNumeralsException("Roman Numeral to be converted isn't valid"); + } + } } return 0; From d73f5600c1891e4e35d1ea4155fcdec903902d2d Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 16:01:48 +0300 Subject: [PATCH 046/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ .besouro/20160929143717113/besouroEpisodes.txt | 2 ++ .besouro/20160929143717113/randomHeuristicEpisodes.txt | 1 + .besouro/20160929143717113/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 1 - 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 8287a2c..d2bc4fc 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -195,3 +195,6 @@ EditAction 1475153984399 RomanNumerals.java 734 1 5 0 UnitTestCaseAction 1475153984671 TestRomanNumerals.java FAIL UnitTestSessionAction 1475153984671 TestRomanNumerals.java FAIL EditAction 1475154096999 RomanNumerals.java 890 1 6 0 +UnitTestCaseAction 1475154097262 TestRomanNumerals.java OK +UnitTestSessionAction 1475154097263 TestRomanNumerals.java OK +EditAction 1475154108242 TestRomanNumerals.java 1415 6 18 3 diff --git a/.besouro/20160929143717113/besouroEpisodes.txt b/.besouro/20160929143717113/besouroEpisodes.txt index 11b1c68..4b6e331 100644 --- a/.besouro/20160929143717113/besouroEpisodes.txt +++ b/.besouro/20160929143717113/besouroEpisodes.txt @@ -225,3 +225,5 @@ 1475152795715 regression 2 12 true 1475152843182 regression 1 0 true 1475152874036 regression 1 0 true +1475154097263 production 1 1071 false +1475154097264 refactoring 2A 1071 true diff --git a/.besouro/20160929143717113/randomHeuristicEpisodes.txt b/.besouro/20160929143717113/randomHeuristicEpisodes.txt index 1c32330..0077f81 100644 --- a/.besouro/20160929143717113/randomHeuristicEpisodes.txt +++ b/.besouro/20160929143717113/randomHeuristicEpisodes.txt @@ -19,3 +19,4 @@ 1475152795715 regression 2 12 false 1475152843182 regression 1 0 true 1475152874036 regression 1 0 false +1475154097263 production 1 1071 false diff --git a/.besouro/20160929143717113/zorroEpisodes.txt b/.besouro/20160929143717113/zorroEpisodes.txt index 73e8011..e7c3626 100644 --- a/.besouro/20160929143717113/zorroEpisodes.txt +++ b/.besouro/20160929143717113/zorroEpisodes.txt @@ -19,3 +19,4 @@ 1475152795715 regression 2 39 true 1475152843182 regression 1 47 true 1475152874036 regression 1 30 true +1475154097263 production 1 1223 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index a0cc39e..7937512 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -73,7 +73,6 @@ public void testConvertingIIII() { rn.convertToInteger("IIII"); } catch(RomanNumeralsException e) { - System.out.println(e.getMessage()); thrown = true; } assertEquals(true, thrown); From b41ad4385c9924ad54709f37da9a271d9a791a7f Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 16:03:07 +0300 Subject: [PATCH 047/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 15 +++++++++++++++ .besouro/20160929143717113/besouroEpisodes.txt | 1 + .../20160929143717113/randomHeuristicEpisodes.txt | 1 + .besouro/20160929143717113/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 13 +++++++++++++ 5 files changed, 31 insertions(+) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index d2bc4fc..f2388ad 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -198,3 +198,18 @@ EditAction 1475154096999 RomanNumerals.java 890 1 6 0 UnitTestCaseAction 1475154097262 TestRomanNumerals.java OK UnitTestSessionAction 1475154097263 TestRomanNumerals.java OK EditAction 1475154108242 TestRomanNumerals.java 1415 6 18 3 +UnitTestCaseAction 1475154109364 TestRomanNumerals.java OK +UnitTestSessionAction 1475154109364 TestRomanNumerals.java OK +RefactoringAction 1475154128383 TestRomanNumerals.java ADD void test FIELD +RefactoringAction 1475154131395 TestRomanNumerals.java RENAME test=>void testConverting FIELD +RefactoringAction 1475154133410 TestRomanNumerals.java RENAME testConverting=>void testConvertingIII FIELD +RefactoringAction 1475154134922 TestRomanNumerals.java RENAME testConvertingIII=>void testConvertingIIIX FIELD +RefactoringAction 1475154137431 TestRomanNumerals.java RENAME testConvertingIIIX=>void testConvertingIIIXX FIELD +RefactoringAction 1475154138443 TestRomanNumerals.java RENAME testConvertingIIIXX=>void testConvertingIIIXXX FIELD +RefactoringAction 1475154139456 TestRomanNumerals.java RENAME testConvertingIIIXXX=>void testConvertingIIIXXXX FIELD +RefactoringAction 1475154143468 TestRomanNumerals.java RENAME testConvertingIIIXXXX=>void testConvertingIIIXXXX() METHOD +RefactoringAction 1475154159491 TestRomanNumerals.java RENAME testConvertingIIIXXXX()=>void testConvertingXXXX() METHOD +RefactoringAction 1475154164500 TestRomanNumerals.java RENAME testConvertingXXXX()=>void testConvertingXXX() METHOD +RefactoringAction 1475154166010 TestRomanNumerals.java RENAME testConvertingXXX()=>void testConvertingXXXIII() METHOD +RefactoringAction 1475154167024 TestRomanNumerals.java RENAME testConvertingXXXIII()=>void testConvertingXXXIIII() METHOD +EditAction 1475154187860 TestRomanNumerals.java 1668 7 22 4 diff --git a/.besouro/20160929143717113/besouroEpisodes.txt b/.besouro/20160929143717113/besouroEpisodes.txt index 4b6e331..43ba0e2 100644 --- a/.besouro/20160929143717113/besouroEpisodes.txt +++ b/.besouro/20160929143717113/besouroEpisodes.txt @@ -227,3 +227,4 @@ 1475152874036 regression 1 0 true 1475154097263 production 1 1071 false 1475154097264 refactoring 2A 1071 true +1475154109364 regression 1 1 true diff --git a/.besouro/20160929143717113/randomHeuristicEpisodes.txt b/.besouro/20160929143717113/randomHeuristicEpisodes.txt index 0077f81..e16643a 100644 --- a/.besouro/20160929143717113/randomHeuristicEpisodes.txt +++ b/.besouro/20160929143717113/randomHeuristicEpisodes.txt @@ -20,3 +20,4 @@ 1475152843182 regression 1 0 true 1475152874036 regression 1 0 false 1475154097263 production 1 1071 false +1475154109364 regression 1 1 false diff --git a/.besouro/20160929143717113/zorroEpisodes.txt b/.besouro/20160929143717113/zorroEpisodes.txt index e7c3626..847c8fe 100644 --- a/.besouro/20160929143717113/zorroEpisodes.txt +++ b/.besouro/20160929143717113/zorroEpisodes.txt @@ -20,3 +20,4 @@ 1475152843182 regression 1 47 true 1475152874036 regression 1 30 true 1475154097263 production 1 1223 true +1475154109364 regression 1 12 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 7937512..8b22c29 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -77,4 +77,17 @@ public void testConvertingIIII() { } assertEquals(true, thrown); } + + @Test + public void testConvertingXXXIIII(){ + RomanNumerals rn = new RomanNumerals(); + boolean thrown = false; + try { + rn.convertToInteger("XXXIIII"); + } + catch(RomanNumeralsException e) { + thrown = true; + } + assertEquals(true, thrown); + } } From 34234765a12d77ef92b4221df24835c7c1c578b2 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 16:08:04 +0300 Subject: [PATCH 048/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 8 ++++++++ .besouro/20160929143717113/besouroEpisodes.txt | 1 + .../20160929143717113/randomHeuristicEpisodes.txt | 1 + .besouro/20160929143717113/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 11 +++++++++++ 5 files changed, 22 insertions(+) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index f2388ad..70d51f9 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -213,3 +213,11 @@ RefactoringAction 1475154164500 TestRomanNumerals.java RENAME testConvertingXXXX RefactoringAction 1475154166010 TestRomanNumerals.java RENAME testConvertingXXX()=>void testConvertingXXXIII() METHOD RefactoringAction 1475154167024 TestRomanNumerals.java RENAME testConvertingXXXIII()=>void testConvertingXXXIIII() METHOD EditAction 1475154187860 TestRomanNumerals.java 1668 7 22 4 +UnitTestCaseAction 1475154189239 TestRomanNumerals.java OK +UnitTestSessionAction 1475154189240 TestRomanNumerals.java OK +RefactoringAction 1475154403612 TestRomanNumerals.java ADD void test FIELD +RefactoringAction 1475154405623 TestRomanNumerals.java RENAME test=>void testConverting FIELD +RefactoringAction 1475154420636 TestRomanNumerals.java RENAME testConverting=>void testConvertingI FIELD +RefactoringAction 1475154421646 TestRomanNumerals.java RENAME testConvertingI=>void testConvertingIV FIELD +RefactoringAction 1475154422655 TestRomanNumerals.java RENAME testConvertingIV=>void testConvertingIV() METHOD +EditAction 1475154484534 TestRomanNumerals.java 1884 8 24 4 diff --git a/.besouro/20160929143717113/besouroEpisodes.txt b/.besouro/20160929143717113/besouroEpisodes.txt index 43ba0e2..a26d03b 100644 --- a/.besouro/20160929143717113/besouroEpisodes.txt +++ b/.besouro/20160929143717113/besouroEpisodes.txt @@ -228,3 +228,4 @@ 1475154097263 production 1 1071 false 1475154097264 refactoring 2A 1071 true 1475154109364 regression 1 1 true +1475154189240 test-addition 1 60 true diff --git a/.besouro/20160929143717113/randomHeuristicEpisodes.txt b/.besouro/20160929143717113/randomHeuristicEpisodes.txt index e16643a..0e2927c 100644 --- a/.besouro/20160929143717113/randomHeuristicEpisodes.txt +++ b/.besouro/20160929143717113/randomHeuristicEpisodes.txt @@ -21,3 +21,4 @@ 1475152874036 regression 1 0 false 1475154097263 production 1 1071 false 1475154109364 regression 1 1 false +1475154189240 test-addition 1 60 false diff --git a/.besouro/20160929143717113/zorroEpisodes.txt b/.besouro/20160929143717113/zorroEpisodes.txt index 847c8fe..f7ba054 100644 --- a/.besouro/20160929143717113/zorroEpisodes.txt +++ b/.besouro/20160929143717113/zorroEpisodes.txt @@ -21,3 +21,4 @@ 1475152874036 regression 1 30 true 1475154097263 production 1 1223 true 1475154109364 regression 1 12 true +1475154189240 test-addition 1 79 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 8b22c29..d1790be 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -90,4 +90,15 @@ public void testConvertingXXXIIII(){ } assertEquals(true, thrown); } + + @Test + public void testConvertingIV(){ + RomanNumerals rn = new RomanNumerals(); + try { + int converted = rn.convertToInteger("IV"); + assertEquals(4, converted); + } + catch(RomanNumeralsException e) { + } + } } From c5e3e12b91d387a4e14a57470099336f56d53e78 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 16:09:45 +0300 Subject: [PATCH 049/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ src/RomanNumerals.java | 16 +++++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 70d51f9..c8a1e6d 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -221,3 +221,6 @@ RefactoringAction 1475154420636 TestRomanNumerals.java RENAME testConverting=>vo RefactoringAction 1475154421646 TestRomanNumerals.java RENAME testConvertingI=>void testConvertingIV FIELD RefactoringAction 1475154422655 TestRomanNumerals.java RENAME testConvertingIV=>void testConvertingIV() METHOD EditAction 1475154484534 TestRomanNumerals.java 1884 8 24 4 +UnitTestCaseAction 1475154485848 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475154485848 TestRomanNumerals.java FAIL +EditAction 1475154585531 RomanNumerals.java 934 1 6 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 4d39399..296e3c2 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -24,14 +24,16 @@ else if (romanNum.equals("III")) { for(int c = 0; c < romanNum.length();c++) { currentChar = romanNum.charAt(c); counter = 1; - while(romanNum.charAt(c+1) == currentChar) { - if( c < romanNum.length()-1) { - c++; - counter++; - if(counter > 3) - throw new RomanNumeralsException("Roman Numeral to be converted isn't valid"); + if(c+1 < romanNum.length()){ + while(romanNum.charAt(c+1) == currentChar) { + if( c < romanNum.length()-1) { + c++; + counter++; + if(counter > 3) + throw new RomanNumeralsException("Roman Numeral to be converted isn't valid"); + } } - } + } } return 0; From f0f5b52ba723efcc2d0c681f2912cfff7945a6e8 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 16:17:04 +0300 Subject: [PATCH 050/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 7 +++++++ src/RomanNumerals.java | 14 +++++++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index c8a1e6d..b0d7e3b 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -224,3 +224,10 @@ EditAction 1475154484534 TestRomanNumerals.java 1884 8 24 4 UnitTestCaseAction 1475154485848 TestRomanNumerals.java FAIL UnitTestSessionAction 1475154485848 TestRomanNumerals.java FAIL EditAction 1475154585531 RomanNumerals.java 934 1 6 0 +UnitTestCaseAction 1475154586818 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475154586819 TestRomanNumerals.java FAIL +RefactoringAction 1475154670984 RomanNumerals.java ADD String FIELD +RefactoringAction 1475154671993 RomanNumerals.java RENAME subString=>String FIELD +RefactoringAction 1475154804272 RomanNumerals.java ADD import java.util.ArrayList IMPORT +RefactoringAction 1475154810419 RomanNumerals.java ADD import java.util.List IMPORT +EditAction 1475155024666 RomanNumerals.java 1222 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 296e3c2..932383b 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -1,5 +1,8 @@ +import java.util.ArrayList; +import java.util.List; public class RomanNumerals { + private List subStrings = new ArrayList(); public int convertToInteger(String romanNum) throws RomanNumeralsException{ for(char c : romanNum.toCharArray()) { if(c == 'I' || c == 'V' || c == 'X' || c == 'L' || c == 'C' || c == 'D' || c == 'M') { @@ -20,10 +23,11 @@ else if (romanNum.equals("III")) { return 3; } char currentChar; - int counter; + int counter = 0, oldPos = 0; for(int c = 0; c < romanNum.length();c++) { currentChar = romanNum.charAt(c); - counter = 1; + counter = 0; + oldPos = c; if(c+1 < romanNum.length()){ while(romanNum.charAt(c+1) == currentChar) { if( c < romanNum.length()-1) { @@ -34,8 +38,12 @@ else if (romanNum.equals("III")) { } } } + } - + if(counter == 0) + subStrings.add(romanNum.substring(oldPos, oldPos)); + else + subStrings.add(romanNum.substring(oldPos, oldPos+counter)); return 0; } } From 8241e3301a09ba737d2d313bc9b118bdc93da8c8 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 16:17:42 +0300 Subject: [PATCH 051/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ src/RomanNumerals.java | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index b0d7e3b..d9f9a93 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -231,3 +231,6 @@ RefactoringAction 1475154671993 RomanNumerals.java RENAME subString=>String FIEL RefactoringAction 1475154804272 RomanNumerals.java ADD import java.util.ArrayList IMPORT RefactoringAction 1475154810419 RomanNumerals.java ADD import java.util.List IMPORT EditAction 1475155024666 RomanNumerals.java 1222 1 7 0 +UnitTestCaseAction 1475155024968 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475155024968 TestRomanNumerals.java FAIL +EditAction 1475155062064 RomanNumerals.java 1224 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 932383b..f78a5b3 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -26,7 +26,7 @@ else if (romanNum.equals("III")) { int counter = 0, oldPos = 0; for(int c = 0; c < romanNum.length();c++) { currentChar = romanNum.charAt(c); - counter = 0; + counter = 1; oldPos = c; if(c+1 < romanNum.length()){ while(romanNum.charAt(c+1) == currentChar) { @@ -40,10 +40,10 @@ else if (romanNum.equals("III")) { } } - if(counter == 0) + if(counter == 1) subStrings.add(romanNum.substring(oldPos, oldPos)); else - subStrings.add(romanNum.substring(oldPos, oldPos+counter)); + subStrings.add(romanNum.substring(oldPos, oldPos+counter-1)); return 0; } } From e49d1548599d9c37e1df36df2162aa0d91671cea Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 16:18:17 +0300 Subject: [PATCH 052/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ src/RomanNumerals.java | 10 +++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index d9f9a93..30897d3 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -234,3 +234,6 @@ EditAction 1475155024666 RomanNumerals.java 1222 1 7 0 UnitTestCaseAction 1475155024968 TestRomanNumerals.java FAIL UnitTestSessionAction 1475155024968 TestRomanNumerals.java FAIL EditAction 1475155062064 RomanNumerals.java 1224 1 7 0 +UnitTestCaseAction 1475155062356 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475155062357 TestRomanNumerals.java FAIL +EditAction 1475155097195 RomanNumerals.java 1230 1 6 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index f78a5b3..32bf65e 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -38,12 +38,12 @@ else if (romanNum.equals("III")) { } } } - + if(counter == 1) + subStrings.add(romanNum.substring(oldPos, oldPos)); + else + subStrings.add(romanNum.substring(oldPos, oldPos+counter-1)); } - if(counter == 1) - subStrings.add(romanNum.substring(oldPos, oldPos)); - else - subStrings.add(romanNum.substring(oldPos, oldPos+counter-1)); + return 0; } } From e81174eb5ff293f7fbdbcc9bc6c376aae464f4b5 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 16:19:54 +0300 Subject: [PATCH 053/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ src/RomanNumerals.java | 1 + 2 files changed, 4 insertions(+) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 30897d3..c9d88ec 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -237,3 +237,6 @@ EditAction 1475155062064 RomanNumerals.java 1224 1 7 0 UnitTestCaseAction 1475155062356 TestRomanNumerals.java FAIL UnitTestSessionAction 1475155062357 TestRomanNumerals.java FAIL EditAction 1475155097195 RomanNumerals.java 1230 1 6 0 +UnitTestCaseAction 1475155098143 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475155098144 TestRomanNumerals.java FAIL +EditAction 1475155194157 RomanNumerals.java 1297 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 32bf65e..aca1a02 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -43,6 +43,7 @@ else if (romanNum.equals("III")) { else subStrings.add(romanNum.substring(oldPos, oldPos+counter-1)); } + System.out.println(subStrings.get(0) + " " + subStrings.get(1)); return 0; } From e0bbe5a68898a283b335b6b7ea1f3f88d5f4a808 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 16:28:32 +0300 Subject: [PATCH 054/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 5 +++++ src/RomanNumerals.java | 14 +++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index c9d88ec..bfa67de 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -240,3 +240,8 @@ EditAction 1475155097195 RomanNumerals.java 1230 1 6 0 UnitTestCaseAction 1475155098143 TestRomanNumerals.java FAIL UnitTestSessionAction 1475155098144 TestRomanNumerals.java FAIL EditAction 1475155194157 RomanNumerals.java 1297 1 7 0 +UnitTestCaseAction 1475155195254 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475155195254 TestRomanNumerals.java FAIL +RefactoringAction 1475155461001 RomanNumerals.java ADD List subStrings/2 FIELD +RefactoringAction 1475155472555 RomanNumerals.java RENAME subStrings/2=>List subStringValues FIELD +EditAction 1475155711944 RomanNumerals.java 1542 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index aca1a02..16eed3c 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -3,6 +3,7 @@ public class RomanNumerals { private List subStrings = new ArrayList(); + private List subStringValues = new ArrayList(); public int convertToInteger(String romanNum) throws RomanNumeralsException{ for(char c : romanNum.toCharArray()) { if(c == 'I' || c == 'V' || c == 'X' || c == 'L' || c == 'C' || c == 'D' || c == 'M') { @@ -43,7 +44,18 @@ else if (romanNum.equals("III")) { else subStrings.add(romanNum.substring(oldPos, oldPos+counter-1)); } - System.out.println(subStrings.get(0) + " " + subStrings.get(1)); + for(String s: subStrings) { + switch(s) { + case "I": subStringValues.add(1); + break; + case "II": subStringValues.add(2); + break; + case "III": subStringValues.add(3); + break; + case "V": subStringValues.add(5); + break; + } + } return 0; } From 1f437e3f40aff0ba1c4a07313affac700ca4414a Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 16:31:47 +0300 Subject: [PATCH 055/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 1 + src/RomanNumerals.java | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index bfa67de..c10a1b9 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -245,3 +245,4 @@ UnitTestSessionAction 1475155195254 TestRomanNumerals.java FAIL RefactoringAction 1475155461001 RomanNumerals.java ADD List subStrings/2 FIELD RefactoringAction 1475155472555 RomanNumerals.java RENAME subStrings/2=>List subStringValues FIELD EditAction 1475155711944 RomanNumerals.java 1542 1 7 0 +EditAction 1475155907438 RomanNumerals.java 1706 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 16eed3c..c970e33 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -23,6 +23,7 @@ else if (romanNum.equals("II")) { else if (romanNum.equals("III")) { return 3; } + char currentChar; int counter = 0, oldPos = 0; for(int c = 0; c < romanNum.length();c++) { @@ -44,6 +45,7 @@ else if (romanNum.equals("III")) { else subStrings.add(romanNum.substring(oldPos, oldPos+counter-1)); } + for(String s: subStrings) { switch(s) { case "I": subStringValues.add(1); @@ -56,7 +58,9 @@ else if (romanNum.equals("III")) { break; } } - - return 0; + if(subStringValues.get(0) Date: Thu, 29 Sep 2016 16:33:35 +0300 Subject: [PATCH 056/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ src/RomanNumerals.java | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index c10a1b9..7c144b4 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -246,3 +246,6 @@ RefactoringAction 1475155461001 RomanNumerals.java ADD List subStrings/2 RefactoringAction 1475155472555 RomanNumerals.java RENAME subStrings/2=>List subStringValues FIELD EditAction 1475155711944 RomanNumerals.java 1542 1 7 0 EditAction 1475155907438 RomanNumerals.java 1706 1 7 0 +UnitTestCaseAction 1475155908675 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475155908675 TestRomanNumerals.java FAIL +EditAction 1475156015072 RomanNumerals.java 1720 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index c970e33..900fb14 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -43,7 +43,8 @@ else if (romanNum.equals("III")) { if(counter == 1) subStrings.add(romanNum.substring(oldPos, oldPos)); else - subStrings.add(romanNum.substring(oldPos, oldPos+counter-1)); + subStrings.add(romanNum.substring(oldPos, oldPos+counter-1)); + counter = 1; } for(String s: subStrings) { From 0b0f4584a6f9206a8c9cb7eda4d0d4e3e9f3329c Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 16:34:41 +0300 Subject: [PATCH 057/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ src/RomanNumerals.java | 1 + 2 files changed, 4 insertions(+) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 7c144b4..c6f86d1 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -249,3 +249,6 @@ EditAction 1475155907438 RomanNumerals.java 1706 1 7 0 UnitTestCaseAction 1475155908675 TestRomanNumerals.java FAIL UnitTestSessionAction 1475155908675 TestRomanNumerals.java FAIL EditAction 1475156015072 RomanNumerals.java 1720 1 7 0 +UnitTestCaseAction 1475156016308 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475156016308 TestRomanNumerals.java FAIL +EditAction 1475156081433 RomanNumerals.java 1758 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 900fb14..21a5d94 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -57,6 +57,7 @@ else if (romanNum.equals("III")) { break; case "V": subStringValues.add(5); break; + default: subStringValues.add(100); } } if(subStringValues.get(0) Date: Thu, 29 Sep 2016 16:35:56 +0300 Subject: [PATCH 058/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ src/RomanNumerals.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index c6f86d1..8c065ff 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -252,3 +252,6 @@ EditAction 1475156015072 RomanNumerals.java 1720 1 7 0 UnitTestCaseAction 1475156016308 TestRomanNumerals.java FAIL UnitTestSessionAction 1475156016308 TestRomanNumerals.java FAIL EditAction 1475156081433 RomanNumerals.java 1758 1 7 0 +UnitTestCaseAction 1475156081703 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475156081703 TestRomanNumerals.java FAIL +EditAction 1475156156093 RomanNumerals.java 1750 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 21a5d94..d1f7c80 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -41,7 +41,7 @@ else if (romanNum.equals("III")) { } } if(counter == 1) - subStrings.add(romanNum.substring(oldPos, oldPos)); + subStrings.add(romanNum.substring(oldPos)); else subStrings.add(romanNum.substring(oldPos, oldPos+counter-1)); counter = 1; From 8c4aaf810bc63b9b8a13c5e435611aebd13f787f Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 16:36:42 +0300 Subject: [PATCH 059/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ src/RomanNumerals.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 8c065ff..c0a9f82 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -255,3 +255,6 @@ EditAction 1475156081433 RomanNumerals.java 1758 1 7 0 UnitTestCaseAction 1475156081703 TestRomanNumerals.java FAIL UnitTestSessionAction 1475156081703 TestRomanNumerals.java FAIL EditAction 1475156156093 RomanNumerals.java 1750 1 7 0 +UnitTestCaseAction 1475156159085 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475156159086 TestRomanNumerals.java FAIL +EditAction 1475156202497 RomanNumerals.java 1748 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index d1f7c80..780ee0e 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -57,7 +57,7 @@ else if (romanNum.equals("III")) { break; case "V": subStringValues.add(5); break; - default: subStringValues.add(100); + default: subStringValues.add(0); } } if(subStringValues.get(0) Date: Thu, 29 Sep 2016 16:39:21 +0300 Subject: [PATCH 060/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ src/RomanNumerals.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index c0a9f82..ce24ac8 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -258,3 +258,6 @@ EditAction 1475156156093 RomanNumerals.java 1750 1 7 0 UnitTestCaseAction 1475156159085 TestRomanNumerals.java FAIL UnitTestSessionAction 1475156159086 TestRomanNumerals.java FAIL EditAction 1475156202497 RomanNumerals.java 1748 1 7 0 +UnitTestCaseAction 1475156202769 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475156202769 TestRomanNumerals.java FAIL +EditAction 1475156361022 RomanNumerals.java 1756 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 780ee0e..193955e 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -41,7 +41,7 @@ else if (romanNum.equals("III")) { } } if(counter == 1) - subStrings.add(romanNum.substring(oldPos)); + subStrings.add(romanNum.substring(oldPos, oldPos)); else subStrings.add(romanNum.substring(oldPos, oldPos+counter-1)); counter = 1; From 51adfe74c0c578a32bf81f24101db01b378b77ea Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 16:40:36 +0300 Subject: [PATCH 061/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ src/RomanNumerals.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index ce24ac8..21dc490 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -261,3 +261,6 @@ EditAction 1475156202497 RomanNumerals.java 1748 1 7 0 UnitTestCaseAction 1475156202769 TestRomanNumerals.java FAIL UnitTestSessionAction 1475156202769 TestRomanNumerals.java FAIL EditAction 1475156361022 RomanNumerals.java 1756 1 7 0 +UnitTestCaseAction 1475156361284 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475156361285 TestRomanNumerals.java FAIL +EditAction 1475156436552 RomanNumerals.java 1758 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 193955e..10618a7 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -41,7 +41,7 @@ else if (romanNum.equals("III")) { } } if(counter == 1) - subStrings.add(romanNum.substring(oldPos, oldPos)); + subStrings.add(romanNum.substring(oldPos, oldPos+1)); else subStrings.add(romanNum.substring(oldPos, oldPos+counter-1)); counter = 1; From e4aa5a17736cb6fe20475b61664c55b05b63271e Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 16:41:43 +0300 Subject: [PATCH 062/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 5 + .../20160929143717113/besouroEpisodes.txt | 144 ++++++++++++++++++ .../randomHeuristicEpisodes.txt | 1 + .besouro/20160929143717113/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 14 ++ 5 files changed, 165 insertions(+) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 21dc490..18d0be4 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -264,3 +264,8 @@ EditAction 1475156361022 RomanNumerals.java 1756 1 7 0 UnitTestCaseAction 1475156361284 TestRomanNumerals.java FAIL UnitTestSessionAction 1475156361285 TestRomanNumerals.java FAIL EditAction 1475156436552 RomanNumerals.java 1758 1 7 0 +UnitTestCaseAction 1475156436808 TestRomanNumerals.java OK +UnitTestSessionAction 1475156436808 TestRomanNumerals.java OK +RefactoringAction 1475156476576 TestRomanNumerals.java ADD void testConvertingVV FIELD +RefactoringAction 1475156478085 TestRomanNumerals.java RENAME testConvertingVV=>void testConvertingVV() METHOD +EditAction 1475156503891 TestRomanNumerals.java 2130 9 28 5 diff --git a/.besouro/20160929143717113/besouroEpisodes.txt b/.besouro/20160929143717113/besouroEpisodes.txt index a26d03b..ee65900 100644 --- a/.besouro/20160929143717113/besouroEpisodes.txt +++ b/.besouro/20160929143717113/besouroEpisodes.txt @@ -229,3 +229,147 @@ 1475154097264 refactoring 2A 1071 true 1475154109364 regression 1 1 true 1475154189240 test-addition 1 60 true +1475156436808 refactoring 3 2033 true +1475156436809 refactoring 3 2033 true +1475156436810 refactoring 3 2033 true +1475156436811 refactoring 3 2033 true +1475156436812 refactoring 3 2033 true +1475156436813 refactoring 3 2033 true +1475156436814 refactoring 3 2033 true +1475156436815 refactoring 3 2033 true +1475156436816 refactoring 3 2033 true +1475156436817 refactoring 3 2033 true +1475156436818 refactoring 3 2033 true +1475156436819 refactoring 3 2033 true +1475156436820 refactoring 3 2033 true +1475156436821 refactoring 3 2033 true +1475156436822 refactoring 3 2033 true +1475156436823 refactoring 3 2033 true +1475156436824 refactoring 3 2033 true +1475156436825 refactoring 3 2033 true +1475156436826 refactoring 3 2033 true +1475156436827 refactoring 3 2033 true +1475156436828 refactoring 3 2033 true +1475156436829 refactoring 3 2033 true +1475156436830 refactoring 3 2033 true +1475156436831 refactoring 3 2033 true +1475156436832 refactoring 3 2033 true +1475156436833 refactoring 3 2033 true +1475156436834 refactoring 3 2033 true +1475156436835 refactoring 3 2033 true +1475156436836 refactoring 3 2033 true +1475156436837 refactoring 3 2033 true +1475156436838 refactoring 3 2033 true +1475156436839 refactoring 3 2033 true +1475156436840 refactoring 3 2033 true +1475156436841 refactoring 3 2033 true +1475156436842 refactoring 3 2033 true +1475156436843 refactoring 3 2033 true +1475156436844 refactoring 3 2033 true +1475156436845 refactoring 3 2033 true +1475156436846 refactoring 3 2033 true +1475156436847 refactoring 3 2033 true +1475156436848 refactoring 3 2033 true +1475156436849 refactoring 3 2033 true +1475156436850 refactoring 3 2033 true +1475156436851 refactoring 3 2033 true +1475156436852 refactoring 3 2033 true +1475156436853 refactoring 3 2033 true +1475156436854 refactoring 3 2033 true +1475156436855 refactoring 3 2033 true +1475156436856 refactoring 3 2033 true +1475156436857 refactoring 3 2033 true +1475156436858 refactoring 3 2033 true +1475156436859 refactoring 3 2033 true +1475156436860 refactoring 3 2033 true +1475156436861 refactoring 3 2033 true +1475156436862 refactoring 3 2033 true +1475156436863 refactoring 3 2033 true +1475156436864 refactoring 3 2033 true +1475156436865 refactoring 3 2033 true +1475156436866 refactoring 3 2033 true +1475156436867 refactoring 3 2033 true +1475156436868 refactoring 3 2033 true +1475156436869 refactoring 3 2033 true +1475156436870 refactoring 3 2033 true +1475156436871 refactoring 3 2033 true +1475156436872 refactoring 3 2033 true +1475156436873 refactoring 3 2033 true +1475156436874 refactoring 3 2033 true +1475156436875 refactoring 3 2033 true +1475156436876 refactoring 3 2033 true +1475156436877 refactoring 3 2033 true +1475156436878 refactoring 3 2033 true +1475156436879 refactoring 3 2033 true +1475156436880 refactoring 3 2033 true +1475156436881 refactoring 3 2033 true +1475156436882 refactoring 3 2033 true +1475156436883 refactoring 3 2033 true +1475156436884 refactoring 3 2033 true +1475156436885 refactoring 3 2033 true +1475156436886 refactoring 3 2033 true +1475156436887 refactoring 3 2033 true +1475156436888 refactoring 3 2033 true +1475156436889 refactoring 3 2033 true +1475156436890 refactoring 3 2033 true +1475156436891 refactoring 3 2033 true +1475156436892 refactoring 3 2033 true +1475156436893 refactoring 3 2033 true +1475156436894 refactoring 3 2033 true +1475156436895 refactoring 3 2033 true +1475156436896 refactoring 3 2033 true +1475156436897 refactoring 3 2033 true +1475156436898 refactoring 3 2033 true +1475156436899 refactoring 3 2033 true +1475156436900 refactoring 3 2033 true +1475156436901 refactoring 3 2033 true +1475156436902 refactoring 3 2033 true +1475156436903 refactoring 3 2033 true +1475156436904 refactoring 3 2033 true +1475156436905 refactoring 3 2033 true +1475156436906 refactoring 3 2033 true +1475156436907 refactoring 3 2033 true +1475156436908 refactoring 3 2033 true +1475156436909 refactoring 3 2033 true +1475156436910 refactoring 3 2033 true +1475156436911 refactoring 3 2033 true +1475156436912 refactoring 3 2033 true +1475156436913 refactoring 3 2033 true +1475156436914 refactoring 3 2033 true +1475156436915 refactoring 3 2033 true +1475156436916 refactoring 3 2033 true +1475156436917 refactoring 3 2033 true +1475156436918 refactoring 3 2033 true +1475156436919 refactoring 3 2033 true +1475156436920 refactoring 3 2033 true +1475156436921 refactoring 3 2033 true +1475156436922 refactoring 3 2033 true +1475156436923 refactoring 3 2033 true +1475156436924 refactoring 3 2033 true +1475156436925 refactoring 3 2033 true +1475156436926 refactoring 3 2033 true +1475156436927 refactoring 3 2033 true +1475156436928 refactoring 3 2033 true +1475156436929 refactoring 3 2033 true +1475156436930 refactoring 3 2033 true +1475156436931 refactoring 3 2033 true +1475156436932 refactoring 3 2033 true +1475156436933 refactoring 3 2033 true +1475156436934 refactoring 3 2033 true +1475156436935 refactoring 3 2033 true +1475156436936 refactoring 3 2033 true +1475156436937 refactoring 3 2033 true +1475156436938 refactoring 3 2033 true +1475156436939 refactoring 3 2033 true +1475156436940 refactoring 3 2033 true +1475156436941 refactoring 3 2033 true +1475156436942 refactoring 3 2033 true +1475156436943 refactoring 3 2033 true +1475156436944 refactoring 3 2033 true +1475156436945 refactoring 3 2033 true +1475156436946 refactoring 3 2033 true +1475156436947 refactoring 3 2033 true +1475156436948 refactoring 3 2033 true +1475156436949 refactoring 3 2033 true +1475156436950 refactoring 3 2033 true +1475156436951 refactoring 3 2033 true diff --git a/.besouro/20160929143717113/randomHeuristicEpisodes.txt b/.besouro/20160929143717113/randomHeuristicEpisodes.txt index 0e2927c..43e4a67 100644 --- a/.besouro/20160929143717113/randomHeuristicEpisodes.txt +++ b/.besouro/20160929143717113/randomHeuristicEpisodes.txt @@ -22,3 +22,4 @@ 1475154097263 production 1 1071 false 1475154109364 regression 1 1 false 1475154189240 test-addition 1 60 false +1475156436808 refactoring 3 2033 true diff --git a/.besouro/20160929143717113/zorroEpisodes.txt b/.besouro/20160929143717113/zorroEpisodes.txt index f7ba054..45dd45a 100644 --- a/.besouro/20160929143717113/zorroEpisodes.txt +++ b/.besouro/20160929143717113/zorroEpisodes.txt @@ -22,3 +22,4 @@ 1475154097263 production 1 1223 true 1475154109364 regression 1 12 true 1475154189240 test-addition 1 79 true +1475156436808 refactoring 3 2247 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index d1790be..41a879d 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -101,4 +101,18 @@ public void testConvertingIV(){ catch(RomanNumeralsException e) { } } + + @Test + public void testConvertingVV() { + RomanNumerals rn = new RomanNumerals(); + boolean thrown = false; + try { + rn.convertToInteger("VV"); + } + catch(RomanNumeralsException e) { + thrown = true; + } + assertEquals(true, thrown); + } + } From 6bb15d7a272ae7d76bf911c4efd637eb3ca905b4 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 16:46:03 +0300 Subject: [PATCH 063/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ src/RomanNumerals.java | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 18d0be4..21c6182 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -269,3 +269,6 @@ UnitTestSessionAction 1475156436808 TestRomanNumerals.java OK RefactoringAction 1475156476576 TestRomanNumerals.java ADD void testConvertingVV FIELD RefactoringAction 1475156478085 TestRomanNumerals.java RENAME testConvertingVV=>void testConvertingVV() METHOD EditAction 1475156503891 TestRomanNumerals.java 2130 9 28 5 +UnitTestCaseAction 1475156505801 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475156505801 TestRomanNumerals.java FAIL +EditAction 1475156763364 RomanNumerals.java 1758 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 10618a7..707e110 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -30,8 +30,8 @@ else if (romanNum.equals("III")) { currentChar = romanNum.charAt(c); counter = 1; oldPos = c; - if(c+1 < romanNum.length()){ - while(romanNum.charAt(c+1) == currentChar) { + while(c+1 < romanNum.length()){ + if(romanNum.charAt(c+1) == currentChar) { if( c < romanNum.length()-1) { c++; counter++; From c675157b7decb1aec6d14ffea0c5bc0930243caa Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 16:47:22 +0300 Subject: [PATCH 064/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ src/RomanNumerals.java | 12 +++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 21c6182..07cc74d 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -272,3 +272,6 @@ EditAction 1475156503891 TestRomanNumerals.java 2130 9 28 5 UnitTestCaseAction 1475156505801 TestRomanNumerals.java FAIL UnitTestSessionAction 1475156505801 TestRomanNumerals.java FAIL EditAction 1475156763364 RomanNumerals.java 1758 1 7 0 +RefactoringAction 1475156830830 RomanNumerals.java ADD String s FIELD +RefactoringAction 1475156833339 RomanNumerals.java REMOVE s FIELD +EditAction 1475156842371 RomanNumerals.java 1713 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 707e110..6a44840 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -31,13 +31,11 @@ else if (romanNum.equals("III")) { counter = 1; oldPos = c; while(c+1 < romanNum.length()){ - if(romanNum.charAt(c+1) == currentChar) { - if( c < romanNum.length()-1) { - c++; - counter++; - if(counter > 3) - throw new RomanNumeralsException("Roman Numeral to be converted isn't valid"); - } + if(romanNum.charAt(c+1) == currentChar) { + c++; + counter++; + if(counter > 3) + throw new RomanNumeralsException("Roman Numeral to be converted isn't valid"); } } if(counter == 1) From c98f26f18f96f2a908eed01ab81a731e71bc5237 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 16:48:09 +0300 Subject: [PATCH 065/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 1 + src/RomanNumerals.java | 14 ++++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 07cc74d..a656373 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -275,3 +275,4 @@ EditAction 1475156763364 RomanNumerals.java 1758 1 7 0 RefactoringAction 1475156830830 RomanNumerals.java ADD String s FIELD RefactoringAction 1475156833339 RomanNumerals.java REMOVE s FIELD EditAction 1475156842371 RomanNumerals.java 1713 1 7 0 +EditAction 1475156889359 RomanNumerals.java 1758 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 6a44840..10618a7 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -30,12 +30,14 @@ else if (romanNum.equals("III")) { currentChar = romanNum.charAt(c); counter = 1; oldPos = c; - while(c+1 < romanNum.length()){ - if(romanNum.charAt(c+1) == currentChar) { - c++; - counter++; - if(counter > 3) - throw new RomanNumeralsException("Roman Numeral to be converted isn't valid"); + if(c+1 < romanNum.length()){ + while(romanNum.charAt(c+1) == currentChar) { + if( c < romanNum.length()-1) { + c++; + counter++; + if(counter > 3) + throw new RomanNumeralsException("Roman Numeral to be converted isn't valid"); + } } } if(counter == 1) From 7ebf4e3c8ef50d3bee44eaca5b33357e4e554a4a Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 16:50:07 +0300 Subject: [PATCH 066/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ src/RomanNumerals.java | 2 ++ 2 files changed, 5 insertions(+) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index a656373..d3dc157 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -276,3 +276,6 @@ RefactoringAction 1475156830830 RomanNumerals.java ADD String s FIELD RefactoringAction 1475156833339 RomanNumerals.java REMOVE s FIELD EditAction 1475156842371 RomanNumerals.java 1713 1 7 0 EditAction 1475156889359 RomanNumerals.java 1758 1 7 0 +UnitTestCaseAction 1475156890183 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475156890183 TestRomanNumerals.java FAIL +EditAction 1475157006991 RomanNumerals.java 1807 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 10618a7..e4e650c 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -37,6 +37,8 @@ else if (romanNum.equals("III")) { counter++; if(counter > 3) throw new RomanNumeralsException("Roman Numeral to be converted isn't valid"); + if(c+1 == romanNum.length()) + break; } } } From 5324bf5a546bd50c85e0e6d48832eeb3451e28e4 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 16:51:09 +0300 Subject: [PATCH 067/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ src/RomanNumerals.java | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index d3dc157..d5f0598 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -279,3 +279,6 @@ EditAction 1475156889359 RomanNumerals.java 1758 1 7 0 UnitTestCaseAction 1475156890183 TestRomanNumerals.java FAIL UnitTestSessionAction 1475156890183 TestRomanNumerals.java FAIL EditAction 1475157006991 RomanNumerals.java 1807 1 7 0 +UnitTestCaseAction 1475157008869 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475157008870 TestRomanNumerals.java FAIL +EditAction 1475157069570 RomanNumerals.java 1805 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index e4e650c..da41ef3 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -37,9 +37,9 @@ else if (romanNum.equals("III")) { counter++; if(counter > 3) throw new RomanNumeralsException("Roman Numeral to be converted isn't valid"); - if(c+1 == romanNum.length()) - break; } + if(c+1 == romanNum.length()) + break; } } if(counter == 1) From 52a3d16f5499c143dcb6c4104b3b47bcce564679 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 16:53:31 +0300 Subject: [PATCH 068/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ src/RomanNumerals.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index d5f0598..e01829f 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -282,3 +282,6 @@ EditAction 1475157006991 RomanNumerals.java 1807 1 7 0 UnitTestCaseAction 1475157008869 TestRomanNumerals.java FAIL UnitTestSessionAction 1475157008870 TestRomanNumerals.java FAIL EditAction 1475157069570 RomanNumerals.java 1805 1 7 0 +UnitTestCaseAction 1475157069869 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475157069869 TestRomanNumerals.java FAIL +EditAction 1475157211714 RomanNumerals.java 1803 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index da41ef3..716836c 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -32,7 +32,7 @@ else if (romanNum.equals("III")) { oldPos = c; if(c+1 < romanNum.length()){ while(romanNum.charAt(c+1) == currentChar) { - if( c < romanNum.length()-1) { + if( c < romanNum.length()) { c++; counter++; if(counter > 3) From 337bdc086c44d787354787dc2c4cc43c984de44c Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 16:55:58 +0300 Subject: [PATCH 069/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ src/RomanNumerals.java | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index e01829f..fafc3f7 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -285,3 +285,6 @@ EditAction 1475157069570 RomanNumerals.java 1805 1 7 0 UnitTestCaseAction 1475157069869 TestRomanNumerals.java FAIL UnitTestSessionAction 1475157069869 TestRomanNumerals.java FAIL EditAction 1475157211714 RomanNumerals.java 1803 1 7 0 +UnitTestCaseAction 1475157212054 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475157212054 TestRomanNumerals.java FAIL +EditAction 1475157358594 RomanNumerals.java 1804 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 716836c..9d4b2cb 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -30,10 +30,9 @@ else if (romanNum.equals("III")) { currentChar = romanNum.charAt(c); counter = 1; oldPos = c; - if(c+1 < romanNum.length()){ - while(romanNum.charAt(c+1) == currentChar) { + if(c+counter < romanNum.length()){ + while(romanNum.charAt(c+counter) == currentChar) { if( c < romanNum.length()) { - c++; counter++; if(counter > 3) throw new RomanNumeralsException("Roman Numeral to be converted isn't valid"); From 833a599579d828e02a34e55d67a38484e3de7a31 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 17:01:40 +0300 Subject: [PATCH 070/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ src/RomanNumerals.java | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index fafc3f7..6a8b39b 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -288,3 +288,6 @@ EditAction 1475157211714 RomanNumerals.java 1803 1 7 0 UnitTestCaseAction 1475157212054 TestRomanNumerals.java FAIL UnitTestSessionAction 1475157212054 TestRomanNumerals.java FAIL EditAction 1475157358594 RomanNumerals.java 1804 1 7 0 +UnitTestCaseAction 1475157360081 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475157360081 TestRomanNumerals.java FAIL +EditAction 1475157700763 RomanNumerals.java 1842 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 9d4b2cb..5717843 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -37,11 +37,11 @@ else if (romanNum.equals("III")) { if(counter > 3) throw new RomanNumeralsException("Roman Numeral to be converted isn't valid"); } - if(c+1 == romanNum.length()) + if(c+counter >= romanNum.length()) break; } } - if(counter == 1) + if(counter == 1 && oldPos+1 < romanNum.length()) subStrings.add(romanNum.substring(oldPos, oldPos+1)); else subStrings.add(romanNum.substring(oldPos, oldPos+counter-1)); From 4cc3e10476dc21d0b36ff6d3c537be33b7f4308d Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 17:02:17 +0300 Subject: [PATCH 071/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ src/RomanNumerals.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 6a8b39b..36e624c 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -291,3 +291,6 @@ EditAction 1475157358594 RomanNumerals.java 1804 1 7 0 UnitTestCaseAction 1475157360081 TestRomanNumerals.java FAIL UnitTestSessionAction 1475157360081 TestRomanNumerals.java FAIL EditAction 1475157700763 RomanNumerals.java 1842 1 7 0 +UnitTestCaseAction 1475157702068 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475157702068 TestRomanNumerals.java FAIL +EditAction 1475157737220 RomanNumerals.java 1810 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 5717843..7b057cb 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -41,7 +41,7 @@ else if (romanNum.equals("III")) { break; } } - if(counter == 1 && oldPos+1 < romanNum.length()) + if(counter == 1) subStrings.add(romanNum.substring(oldPos, oldPos+1)); else subStrings.add(romanNum.substring(oldPos, oldPos+counter-1)); From 45a654e06a403184677a43e6e84770082bd065ae Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 17:03:46 +0300 Subject: [PATCH 072/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 +++ src/RomanNumerals.java | 2 ++ 2 files changed, 5 insertions(+) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index 36e624c..bdaaadf 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -294,3 +294,6 @@ EditAction 1475157700763 RomanNumerals.java 1842 1 7 0 UnitTestCaseAction 1475157702068 TestRomanNumerals.java FAIL UnitTestSessionAction 1475157702068 TestRomanNumerals.java FAIL EditAction 1475157737220 RomanNumerals.java 1810 1 7 0 +UnitTestCaseAction 1475157738237 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475157738237 TestRomanNumerals.java FAIL +EditAction 1475157826822 RomanNumerals.java 1967 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 7b057cb..bba80da 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -32,6 +32,8 @@ else if (romanNum.equals("III")) { oldPos = c; if(c+counter < romanNum.length()){ while(romanNum.charAt(c+counter) == currentChar) { + if(currentChar == 'V' || currentChar == 'L' || currentChar == 'D') + throw new RomanNumeralsException("Roman Numeral to be converted isn't valid"); if( c < romanNum.length()) { counter++; if(counter > 3) From 29ec8e52fcf42ef2ea64c7cd27995da692c9224a Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 29 Sep 2016 17:04:07 +0300 Subject: [PATCH 073/131] besouro automatic message --- .besouro/20160929143717113/actions.txt | 3 ++ .../20160929143717113/besouroEpisodes.txt | 37 +++++++++++++++++++ .../randomHeuristicEpisodes.txt | 1 + .besouro/20160929143717113/zorroEpisodes.txt | 1 + src/RomanNumerals.java | 10 ----- 5 files changed, 42 insertions(+), 10 deletions(-) diff --git a/.besouro/20160929143717113/actions.txt b/.besouro/20160929143717113/actions.txt index bdaaadf..1efc63f 100644 --- a/.besouro/20160929143717113/actions.txt +++ b/.besouro/20160929143717113/actions.txt @@ -297,3 +297,6 @@ EditAction 1475157737220 RomanNumerals.java 1810 1 7 0 UnitTestCaseAction 1475157738237 TestRomanNumerals.java FAIL UnitTestSessionAction 1475157738237 TestRomanNumerals.java FAIL EditAction 1475157826822 RomanNumerals.java 1967 1 7 0 +UnitTestCaseAction 1475157827945 TestRomanNumerals.java OK +UnitTestSessionAction 1475157827946 TestRomanNumerals.java OK +EditAction 1475157847154 RomanNumerals.java 1809 1 6 0 diff --git a/.besouro/20160929143717113/besouroEpisodes.txt b/.besouro/20160929143717113/besouroEpisodes.txt index ee65900..ba19809 100644 --- a/.besouro/20160929143717113/besouroEpisodes.txt +++ b/.besouro/20160929143717113/besouroEpisodes.txt @@ -373,3 +373,40 @@ 1475156436949 refactoring 3 2033 true 1475156436950 refactoring 3 2033 true 1475156436951 refactoring 3 2033 true +1475157827946 test-first 3 1351 true +1475157827947 test-first 3 1351 true +1475157827948 test-first 3 1351 true +1475157827949 test-first 3 1351 true +1475157827950 test-first 3 1351 true +1475157827951 test-first 3 1351 true +1475157827952 test-first 3 1351 true +1475157827953 test-first 3 1351 true +1475157827954 test-first 3 1351 true +1475157827955 test-first 3 1351 true +1475157827956 test-first 3 1351 true +1475157827957 test-first 3 1351 true +1475157827958 test-first 3 1351 true +1475157827959 test-first 3 1351 true +1475157827960 test-first 3 1351 true +1475157827961 test-first 3 1351 true +1475157827962 test-first 3 1351 true +1475157827963 test-first 3 1351 true +1475157827964 test-first 3 1351 true +1475157827965 test-first 3 1351 true +1475157827966 test-first 3 1351 true +1475157827967 test-first 3 1351 true +1475157827968 test-first 3 1351 true +1475157827969 test-first 3 1351 true +1475157827970 test-first 3 1351 true +1475157827971 test-first 3 1351 true +1475157827972 test-first 3 1351 true +1475157827973 test-first 3 1351 true +1475157827974 test-first 3 1351 true +1475157827975 test-first 3 1351 true +1475157827976 test-first 3 1351 true +1475157827977 test-first 3 1351 true +1475157827978 test-first 3 1351 true +1475157827979 test-first 3 1351 true +1475157827980 test-first 3 1351 true +1475157827981 test-first 3 1351 true +1475157827982 test-first 3 1351 true diff --git a/.besouro/20160929143717113/randomHeuristicEpisodes.txt b/.besouro/20160929143717113/randomHeuristicEpisodes.txt index 43e4a67..053b7be 100644 --- a/.besouro/20160929143717113/randomHeuristicEpisodes.txt +++ b/.besouro/20160929143717113/randomHeuristicEpisodes.txt @@ -23,3 +23,4 @@ 1475154109364 regression 1 1 false 1475154189240 test-addition 1 60 false 1475156436808 refactoring 3 2033 true +1475157827946 test-first 3 1351 true diff --git a/.besouro/20160929143717113/zorroEpisodes.txt b/.besouro/20160929143717113/zorroEpisodes.txt index 45dd45a..a219825 100644 --- a/.besouro/20160929143717113/zorroEpisodes.txt +++ b/.besouro/20160929143717113/zorroEpisodes.txt @@ -23,3 +23,4 @@ 1475154109364 regression 1 12 true 1475154189240 test-addition 1 79 true 1475156436808 refactoring 3 2247 true +1475157827946 test-first 3 1391 true diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index bba80da..e5dae7e 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -14,16 +14,6 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ } - if(romanNum.equals("I")) { - return 1; - } - else if (romanNum.equals("II")) { - return 2; - } - else if (romanNum.equals("III")) { - return 3; - } - char currentChar; int counter = 0, oldPos = 0; for(int c = 0; c < romanNum.length();c++) { From 50bb384d212cff979e6d09517bf11c5e448e764a Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 6 Oct 2016 14:29:47 +0300 Subject: [PATCH 074/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 6 +++++ .../20161006142833483/besouroEpisodes.txt | 0 .besouro/20161006142833483/disagreements.txt | 0 .../randomHeuristicEpisodes.txt | 0 .besouro/20161006142833483/userComments.txt | 0 .besouro/20161006142833483/zorroEpisodes.txt | 0 tests/TestRomanNumerals.java | 22 +++++++++++++++++++ 7 files changed, 28 insertions(+) create mode 100644 .besouro/20161006142833483/actions.txt create mode 100644 .besouro/20161006142833483/besouroEpisodes.txt create mode 100644 .besouro/20161006142833483/disagreements.txt create mode 100644 .besouro/20161006142833483/randomHeuristicEpisodes.txt create mode 100644 .besouro/20161006142833483/userComments.txt create mode 100644 .besouro/20161006142833483/zorroEpisodes.txt diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt new file mode 100644 index 0000000..06f50df --- /dev/null +++ b/.besouro/20161006142833483/actions.txt @@ -0,0 +1,6 @@ +FileOpenedAction 1475753313805 TestRomanNumerals.java 2130 9 28 5 +RefactoringAction 1475753317063 TestRomanNumerals.java ADD void testConvertingVV()/2 METHOD +RefactoringAction 1475753321086 TestRomanNumerals.java RENAME testConvertingVV()/2=>void testConvertingX() METHOD +RefactoringAction 1475753378237 TestRomanNumerals.java ADD void testConvertingX()/2 METHOD +RefactoringAction 1475753380747 TestRomanNumerals.java RENAME testConvertingX()/2=>void testConvertingXX() METHOD +EditAction 1475753387230 TestRomanNumerals.java 2564 11 32 5 diff --git a/.besouro/20161006142833483/besouroEpisodes.txt b/.besouro/20161006142833483/besouroEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20161006142833483/disagreements.txt b/.besouro/20161006142833483/disagreements.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20161006142833483/randomHeuristicEpisodes.txt b/.besouro/20161006142833483/randomHeuristicEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20161006142833483/userComments.txt b/.besouro/20161006142833483/userComments.txt new file mode 100644 index 0000000..e69de29 diff --git a/.besouro/20161006142833483/zorroEpisodes.txt b/.besouro/20161006142833483/zorroEpisodes.txt new file mode 100644 index 0000000..e69de29 diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 41a879d..bb126e9 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -115,4 +115,26 @@ public void testConvertingVV() { assertEquals(true, thrown); } + @Test + public void testConvertingX() { + RomanNumerals rn = new RomanNumerals(); + try { + int converted = rn.convertToInteger("X"); + assertEquals(10, converted); + } + catch(RomanNumeralsException e) { + } + } + + @Test + public void testConvertingXX() { + RomanNumerals rn = new RomanNumerals(); + try { + int converted = rn.convertToInteger("XX"); + assertEquals(20, converted); + } + catch(RomanNumeralsException e) { + } + } + } From 0b67a439246e3298dc4455308a33c7de362e5719 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 6 Oct 2016 14:31:28 +0300 Subject: [PATCH 075/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 2 ++ 2 files changed, 5 insertions(+) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 06f50df..019d38e 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -4,3 +4,6 @@ RefactoringAction 1475753321086 TestRomanNumerals.java RENAME testConvertingVV() RefactoringAction 1475753378237 TestRomanNumerals.java ADD void testConvertingX()/2 METHOD RefactoringAction 1475753380747 TestRomanNumerals.java RENAME testConvertingX()/2=>void testConvertingXX() METHOD EditAction 1475753387230 TestRomanNumerals.java 2564 11 32 5 +UnitTestCaseAction 1475753389767 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475753389768 TestRomanNumerals.java FAIL +EditAction 1475753488293 RomanNumerals.java 1857 1 6 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index e5dae7e..f4ff489 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -50,6 +50,8 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ break; case "V": subStringValues.add(5); break; + case "X": subStringValues.add(10); + break; default: subStringValues.add(0); } } From 0f8d053b43d1ac36fa1604e479aa8ee1eeb27080 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 6 Oct 2016 14:35:32 +0300 Subject: [PATCH 076/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 019d38e..2ebc274 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -7,3 +7,6 @@ EditAction 1475753387230 TestRomanNumerals.java 2564 11 32 5 UnitTestCaseAction 1475753389767 TestRomanNumerals.java FAIL UnitTestSessionAction 1475753389768 TestRomanNumerals.java FAIL EditAction 1475753488293 RomanNumerals.java 1857 1 6 0 +UnitTestCaseAction 1475753490182 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475753490183 TestRomanNumerals.java FAIL +EditAction 1475753732790 RomanNumerals.java 1930 1 6 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index f4ff489..d2b1512 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -55,7 +55,9 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ default: subStringValues.add(0); } } - if(subStringValues.get(0) Date: Thu, 6 Oct 2016 14:36:44 +0300 Subject: [PATCH 077/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 8 +++++++ .../20161006142833483/besouroEpisodes.txt | 4 ++++ .../randomHeuristicEpisodes.txt | 1 + .besouro/20161006142833483/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 24 +++++++++++++++++++ 5 files changed, 38 insertions(+) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 2ebc274..9b50745 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -10,3 +10,11 @@ EditAction 1475753488293 RomanNumerals.java 1857 1 6 0 UnitTestCaseAction 1475753490182 TestRomanNumerals.java FAIL UnitTestSessionAction 1475753490183 TestRomanNumerals.java FAIL EditAction 1475753732790 RomanNumerals.java 1930 1 6 0 +UnitTestCaseAction 1475753735875 TestRomanNumerals.java OK +UnitTestSessionAction 1475753735875 TestRomanNumerals.java OK +RefactoringAction 1475753767877 TestRomanNumerals.java ADD void testConvertingX()/2 METHOD +RefactoringAction 1475753770902 TestRomanNumerals.java RENAME testConvertingX()/2=>void testConvertingL() METHOD +RefactoringAction 1475753792508 TestRomanNumerals.java ADD void testConvertingVV()/2 METHOD +RefactoringAction 1475753795529 TestRomanNumerals.java RENAME testConvertingVV()/2=>void testConverting() METHOD +RefactoringAction 1475753796554 TestRomanNumerals.java RENAME testConverting()=>void testConvertingLL() METHOD +EditAction 1475753804105 TestRomanNumerals.java 3024 13 38 6 diff --git a/.besouro/20161006142833483/besouroEpisodes.txt b/.besouro/20161006142833483/besouroEpisodes.txt index e69de29..370b4eb 100644 --- a/.besouro/20161006142833483/besouroEpisodes.txt +++ b/.besouro/20161006142833483/besouroEpisodes.txt @@ -0,0 +1,4 @@ +1475753735875 test-first 3 422 true +1475753735876 test-first 3 422 true +1475753735877 test-first 3 422 true +1475753735878 test-first 3 422 true diff --git a/.besouro/20161006142833483/randomHeuristicEpisodes.txt b/.besouro/20161006142833483/randomHeuristicEpisodes.txt index e69de29..23c971a 100644 --- a/.besouro/20161006142833483/randomHeuristicEpisodes.txt +++ b/.besouro/20161006142833483/randomHeuristicEpisodes.txt @@ -0,0 +1 @@ +1475753735875 test-first 3 422 true diff --git a/.besouro/20161006142833483/zorroEpisodes.txt b/.besouro/20161006142833483/zorroEpisodes.txt index e69de29..23c971a 100644 --- a/.besouro/20161006142833483/zorroEpisodes.txt +++ b/.besouro/20161006142833483/zorroEpisodes.txt @@ -0,0 +1 @@ +1475753735875 test-first 3 422 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index bb126e9..a9e8773 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -137,4 +137,28 @@ public void testConvertingXX() { } } + @Test + public void testConvertingL() { + RomanNumerals rn = new RomanNumerals(); + try { + int converted = rn.convertToInteger("L"); + assertEquals(50, converted); + } + catch(RomanNumeralsException e) { + } + } + + @Test + public void testConvertingLL() { + RomanNumerals rn = new RomanNumerals(); + boolean thrown = false; + try { + rn.convertToInteger("LL"); + } + catch(RomanNumeralsException e) { + thrown = true; + } + assertEquals(true, thrown); + } + } From f58a4a0155b7769bbd33ed7a16cc331949a54caf Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 6 Oct 2016 14:37:18 +0300 Subject: [PATCH 078/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 2 ++ 2 files changed, 5 insertions(+) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 9b50745..1b07562 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -18,3 +18,6 @@ RefactoringAction 1475753792508 TestRomanNumerals.java ADD void testConvertingVV RefactoringAction 1475753795529 TestRomanNumerals.java RENAME testConvertingVV()/2=>void testConverting() METHOD RefactoringAction 1475753796554 TestRomanNumerals.java RENAME testConverting()=>void testConvertingLL() METHOD EditAction 1475753804105 TestRomanNumerals.java 3024 13 38 6 +UnitTestCaseAction 1475753805828 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475753805829 TestRomanNumerals.java FAIL +EditAction 1475753838298 RomanNumerals.java 1978 1 6 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index d2b1512..d0295ec 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -52,6 +52,8 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ break; case "X": subStringValues.add(10); break; + case "L": subStringValues.add(50); + break; default: subStringValues.add(0); } } From 10034778443a001ab39cb8f0a9ecae6d3bd73ecb Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 6 Oct 2016 14:38:02 +0300 Subject: [PATCH 079/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 8 +++++++ .../20161006142833483/besouroEpisodes.txt | 3 +++ .../randomHeuristicEpisodes.txt | 1 + .besouro/20161006142833483/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 22 +++++++++++++++++++ 5 files changed, 35 insertions(+) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 1b07562..35c0872 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -21,3 +21,11 @@ EditAction 1475753804105 TestRomanNumerals.java 3024 13 38 6 UnitTestCaseAction 1475753805828 TestRomanNumerals.java FAIL UnitTestSessionAction 1475753805829 TestRomanNumerals.java FAIL EditAction 1475753838298 RomanNumerals.java 1978 1 6 0 +UnitTestCaseAction 1475753841367 TestRomanNumerals.java OK +UnitTestSessionAction 1475753841367 TestRomanNumerals.java OK +RefactoringAction 1475753860608 TestRomanNumerals.java ADD void testConvertingX()/2 METHOD +RefactoringAction 1475753860608 TestRomanNumerals.java ADD void testConvertingXX()/2 METHOD +RefactoringAction 1475753864152 TestRomanNumerals.java RENAME testConvertingX()/2=>void testConvertingC() METHOD +RefactoringAction 1475753867173 TestRomanNumerals.java RENAME testConvertingXX()/2=>void testConvertingC()/2 METHOD +RefactoringAction 1475753868193 TestRomanNumerals.java RENAME testConvertingC()/2=>void testConvertingCC() METHOD +EditAction 1475753882459 TestRomanNumerals.java 3460 15 42 6 diff --git a/.besouro/20161006142833483/besouroEpisodes.txt b/.besouro/20161006142833483/besouroEpisodes.txt index 370b4eb..5839572 100644 --- a/.besouro/20161006142833483/besouroEpisodes.txt +++ b/.besouro/20161006142833483/besouroEpisodes.txt @@ -2,3 +2,6 @@ 1475753735876 test-first 3 422 true 1475753735877 test-first 3 422 true 1475753735878 test-first 3 422 true +1475753841367 test-first 3 73 true +1475753841368 test-first 3 73 true +1475753841369 test-first 3 73 true diff --git a/.besouro/20161006142833483/randomHeuristicEpisodes.txt b/.besouro/20161006142833483/randomHeuristicEpisodes.txt index 23c971a..298c1af 100644 --- a/.besouro/20161006142833483/randomHeuristicEpisodes.txt +++ b/.besouro/20161006142833483/randomHeuristicEpisodes.txt @@ -1 +1,2 @@ 1475753735875 test-first 3 422 true +1475753841367 test-first 3 73 true diff --git a/.besouro/20161006142833483/zorroEpisodes.txt b/.besouro/20161006142833483/zorroEpisodes.txt index 23c971a..c698766 100644 --- a/.besouro/20161006142833483/zorroEpisodes.txt +++ b/.besouro/20161006142833483/zorroEpisodes.txt @@ -1 +1,2 @@ 1475753735875 test-first 3 422 true +1475753841367 test-first 3 105 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index a9e8773..7228e32 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -161,4 +161,26 @@ public void testConvertingLL() { assertEquals(true, thrown); } + @Test + public void testConvertingC() { + RomanNumerals rn = new RomanNumerals(); + try { + int converted = rn.convertToInteger("C"); + assertEquals(100, converted); + } + catch(RomanNumeralsException e) { + } + } + + @Test + public void testConvertingCC() { + RomanNumerals rn = new RomanNumerals(); + try { + int converted = rn.convertToInteger("CC"); + assertEquals(200, converted); + } + catch(RomanNumeralsException e) { + } + } + } From 804156929b8741cab945dbf377fdb4508ff47cf1 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 6 Oct 2016 14:38:21 +0300 Subject: [PATCH 080/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 2 ++ 2 files changed, 5 insertions(+) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 35c0872..00140b0 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -29,3 +29,6 @@ RefactoringAction 1475753864152 TestRomanNumerals.java RENAME testConvertingX()/ RefactoringAction 1475753867173 TestRomanNumerals.java RENAME testConvertingXX()/2=>void testConvertingC()/2 METHOD RefactoringAction 1475753868193 TestRomanNumerals.java RENAME testConvertingC()/2=>void testConvertingCC() METHOD EditAction 1475753882459 TestRomanNumerals.java 3460 15 42 6 +UnitTestCaseAction 1475753886496 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475753886496 TestRomanNumerals.java FAIL +EditAction 1475753901514 RomanNumerals.java 2027 1 6 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index d0295ec..8d179dd 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -54,6 +54,8 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ break; case "L": subStringValues.add(50); break; + case "C": subStringValues.add(100); + break; default: subStringValues.add(0); } } From 7966b32a500673d5e8056fe6e0ecad5c69e7ccf9 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 6 Oct 2016 14:38:59 +0300 Subject: [PATCH 081/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 7 ++++++ .../20161006142833483/besouroEpisodes.txt | 2 ++ .../randomHeuristicEpisodes.txt | 1 + .besouro/20161006142833483/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 24 +++++++++++++++++++ 5 files changed, 35 insertions(+) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 00140b0..8851677 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -32,3 +32,10 @@ EditAction 1475753882459 TestRomanNumerals.java 3460 15 42 6 UnitTestCaseAction 1475753886496 TestRomanNumerals.java FAIL UnitTestSessionAction 1475753886496 TestRomanNumerals.java FAIL EditAction 1475753901514 RomanNumerals.java 2027 1 6 0 +UnitTestCaseAction 1475753902746 TestRomanNumerals.java OK +UnitTestSessionAction 1475753902746 TestRomanNumerals.java OK +RefactoringAction 1475753921775 TestRomanNumerals.java ADD void testConvertingL()/2 METHOD +RefactoringAction 1475753921776 TestRomanNumerals.java ADD void testConvertingLL()/2 METHOD +RefactoringAction 1475753926797 TestRomanNumerals.java RENAME testConvertingL()/2=>void testConvertingD() METHOD +RefactoringAction 1475753934855 TestRomanNumerals.java RENAME testConvertingLL()/2=>void testConvertingDD() METHOD +EditAction 1475753939624 TestRomanNumerals.java 3921 17 48 7 diff --git a/.besouro/20161006142833483/besouroEpisodes.txt b/.besouro/20161006142833483/besouroEpisodes.txt index 5839572..ccbbea9 100644 --- a/.besouro/20161006142833483/besouroEpisodes.txt +++ b/.besouro/20161006142833483/besouroEpisodes.txt @@ -5,3 +5,5 @@ 1475753841367 test-first 3 73 true 1475753841368 test-first 3 73 true 1475753841369 test-first 3 73 true +1475753902746 test-first 3 42 true +1475753902747 test-first 3 42 true diff --git a/.besouro/20161006142833483/randomHeuristicEpisodes.txt b/.besouro/20161006142833483/randomHeuristicEpisodes.txt index 298c1af..4ee0553 100644 --- a/.besouro/20161006142833483/randomHeuristicEpisodes.txt +++ b/.besouro/20161006142833483/randomHeuristicEpisodes.txt @@ -1,2 +1,3 @@ 1475753735875 test-first 3 422 true 1475753841367 test-first 3 73 true +1475753902746 test-first 3 42 true diff --git a/.besouro/20161006142833483/zorroEpisodes.txt b/.besouro/20161006142833483/zorroEpisodes.txt index c698766..1fe4aa8 100644 --- a/.besouro/20161006142833483/zorroEpisodes.txt +++ b/.besouro/20161006142833483/zorroEpisodes.txt @@ -1,2 +1,3 @@ 1475753735875 test-first 3 422 true 1475753841367 test-first 3 105 true +1475753902746 test-first 3 61 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 7228e32..4ec70a2 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -183,4 +183,28 @@ public void testConvertingCC() { } } + @Test + public void testConvertingD() { + RomanNumerals rn = new RomanNumerals(); + try { + int converted = rn.convertToInteger("D"); + assertEquals(500, converted); + } + catch(RomanNumeralsException e) { + } + } + + @Test + public void testConvertingDD() { + RomanNumerals rn = new RomanNumerals(); + boolean thrown = false; + try { + rn.convertToInteger("DD"); + } + catch(RomanNumeralsException e) { + thrown = true; + } + assertEquals(true, thrown); + } + } From e14d49c19de5aebf4e6f5422a06f16220f11a41f Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 6 Oct 2016 14:39:18 +0300 Subject: [PATCH 082/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 2 ++ 2 files changed, 5 insertions(+) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 8851677..41ed6ad 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -39,3 +39,6 @@ RefactoringAction 1475753921776 TestRomanNumerals.java ADD void testConvertingLL RefactoringAction 1475753926797 TestRomanNumerals.java RENAME testConvertingL()/2=>void testConvertingD() METHOD RefactoringAction 1475753934855 TestRomanNumerals.java RENAME testConvertingLL()/2=>void testConvertingDD() METHOD EditAction 1475753939624 TestRomanNumerals.java 3921 17 48 7 +UnitTestCaseAction 1475753941077 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475753941077 TestRomanNumerals.java FAIL +EditAction 1475753958864 RomanNumerals.java 2076 1 6 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 8d179dd..680dc4c 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -56,6 +56,8 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ break; case "C": subStringValues.add(100); break; + case "D": subStringValues.add(500); + break; default: subStringValues.add(0); } } From 4cfbe38d1c0efcdb196dfc9ee64fee1e048e43ea Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 6 Oct 2016 14:39:59 +0300 Subject: [PATCH 083/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 8 +++++++ .../20161006142833483/besouroEpisodes.txt | 3 +++ .../randomHeuristicEpisodes.txt | 1 + .besouro/20161006142833483/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 22 +++++++++++++++++++ 5 files changed, 35 insertions(+) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 41ed6ad..587c82b 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -42,3 +42,11 @@ EditAction 1475753939624 TestRomanNumerals.java 3921 17 48 7 UnitTestCaseAction 1475753941077 TestRomanNumerals.java FAIL UnitTestSessionAction 1475753941077 TestRomanNumerals.java FAIL EditAction 1475753958864 RomanNumerals.java 2076 1 6 0 +UnitTestCaseAction 1475753961692 TestRomanNumerals.java OK +UnitTestSessionAction 1475753961693 TestRomanNumerals.java OK +RefactoringAction 1475753977906 TestRomanNumerals.java ADD void testConvertingC()/2 METHOD +RefactoringAction 1475753977907 TestRomanNumerals.java ADD void testConvertingCC()/2 METHOD +RefactoringAction 1475753981928 TestRomanNumerals.java RENAME testConvertingC()/2=>void testConvertingM() METHOD +RefactoringAction 1475753990498 TestRomanNumerals.java RENAME testConvertingCC()/2=>void testConverting() METHOD +RefactoringAction 1475753991516 TestRomanNumerals.java RENAME testConverting()=>void testConvertingMM() METHOD +EditAction 1475753999661 TestRomanNumerals.java 4359 19 52 7 diff --git a/.besouro/20161006142833483/besouroEpisodes.txt b/.besouro/20161006142833483/besouroEpisodes.txt index ccbbea9..b0760bf 100644 --- a/.besouro/20161006142833483/besouroEpisodes.txt +++ b/.besouro/20161006142833483/besouroEpisodes.txt @@ -7,3 +7,6 @@ 1475753841369 test-first 3 73 true 1475753902746 test-first 3 42 true 1475753902747 test-first 3 42 true +1475753961693 test-first 3 39 true +1475753961694 test-first 3 39 true +1475753961695 test-first 3 39 true diff --git a/.besouro/20161006142833483/randomHeuristicEpisodes.txt b/.besouro/20161006142833483/randomHeuristicEpisodes.txt index 4ee0553..945926b 100644 --- a/.besouro/20161006142833483/randomHeuristicEpisodes.txt +++ b/.besouro/20161006142833483/randomHeuristicEpisodes.txt @@ -1,3 +1,4 @@ 1475753735875 test-first 3 422 true 1475753841367 test-first 3 73 true 1475753902746 test-first 3 42 true +1475753961693 test-first 3 39 true diff --git a/.besouro/20161006142833483/zorroEpisodes.txt b/.besouro/20161006142833483/zorroEpisodes.txt index 1fe4aa8..f38cdf7 100644 --- a/.besouro/20161006142833483/zorroEpisodes.txt +++ b/.besouro/20161006142833483/zorroEpisodes.txt @@ -1,3 +1,4 @@ 1475753735875 test-first 3 422 true 1475753841367 test-first 3 105 true 1475753902746 test-first 3 61 true +1475753961693 test-first 3 58 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 4ec70a2..9d9502e 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -207,4 +207,26 @@ public void testConvertingDD() { assertEquals(true, thrown); } + @Test + public void testConvertingM() { + RomanNumerals rn = new RomanNumerals(); + try { + int converted = rn.convertToInteger("M"); + assertEquals(1000, converted); + } + catch(RomanNumeralsException e) { + } + } + + @Test + public void testConvertingMM() { + RomanNumerals rn = new RomanNumerals(); + try { + int converted = rn.convertToInteger("MM"); + assertEquals(2000, converted); + } + catch(RomanNumeralsException e) { + } + } + } From 73bc23c3ec1a667e235eb06f7fda430cf2c97593 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 6 Oct 2016 14:40:17 +0300 Subject: [PATCH 084/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 2 ++ 2 files changed, 5 insertions(+) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 587c82b..e3eb3b3 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -50,3 +50,6 @@ RefactoringAction 1475753981928 TestRomanNumerals.java RENAME testConvertingC()/ RefactoringAction 1475753990498 TestRomanNumerals.java RENAME testConvertingCC()/2=>void testConverting() METHOD RefactoringAction 1475753991516 TestRomanNumerals.java RENAME testConverting()=>void testConvertingMM() METHOD EditAction 1475753999661 TestRomanNumerals.java 4359 19 52 7 +UnitTestCaseAction 1475754001891 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475754001891 TestRomanNumerals.java FAIL +EditAction 1475754017041 RomanNumerals.java 2126 1 6 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 680dc4c..be830c6 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -58,6 +58,8 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ break; case "D": subStringValues.add(500); break; + case "M": subStringValues.add(1000); + break; default: subStringValues.add(0); } } From 3b6ac2e8468304e531dc33c9a0b3e5424742afd8 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 6 Oct 2016 14:41:15 +0300 Subject: [PATCH 085/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 5 +++++ .besouro/20161006142833483/besouroEpisodes.txt | 2 ++ .../20161006142833483/randomHeuristicEpisodes.txt | 1 + .besouro/20161006142833483/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 11 +++++++++++ 5 files changed, 20 insertions(+) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index e3eb3b3..adb6012 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -53,3 +53,8 @@ EditAction 1475753999661 TestRomanNumerals.java 4359 19 52 7 UnitTestCaseAction 1475754001891 TestRomanNumerals.java FAIL UnitTestSessionAction 1475754001891 TestRomanNumerals.java FAIL EditAction 1475754017041 RomanNumerals.java 2126 1 6 0 +UnitTestCaseAction 1475754018479 TestRomanNumerals.java OK +UnitTestSessionAction 1475754018479 TestRomanNumerals.java OK +RefactoringAction 1475754061109 TestRomanNumerals.java ADD void testConvertingXX()/2 METHOD +RefactoringAction 1475754063634 TestRomanNumerals.java RENAME testConvertingXX()/2=>void testConvertingXIX() METHOD +EditAction 1475754075143 TestRomanNumerals.java 4579 20 54 7 diff --git a/.besouro/20161006142833483/besouroEpisodes.txt b/.besouro/20161006142833483/besouroEpisodes.txt index b0760bf..1be7bda 100644 --- a/.besouro/20161006142833483/besouroEpisodes.txt +++ b/.besouro/20161006142833483/besouroEpisodes.txt @@ -10,3 +10,5 @@ 1475753961693 test-first 3 39 true 1475753961694 test-first 3 39 true 1475753961695 test-first 3 39 true +1475754018479 test-first 3 40 true +1475754018480 test-first 3 40 true diff --git a/.besouro/20161006142833483/randomHeuristicEpisodes.txt b/.besouro/20161006142833483/randomHeuristicEpisodes.txt index 945926b..f5ad036 100644 --- a/.besouro/20161006142833483/randomHeuristicEpisodes.txt +++ b/.besouro/20161006142833483/randomHeuristicEpisodes.txt @@ -2,3 +2,4 @@ 1475753841367 test-first 3 73 true 1475753902746 test-first 3 42 true 1475753961693 test-first 3 39 true +1475754018479 test-first 3 40 true diff --git a/.besouro/20161006142833483/zorroEpisodes.txt b/.besouro/20161006142833483/zorroEpisodes.txt index f38cdf7..d733f2c 100644 --- a/.besouro/20161006142833483/zorroEpisodes.txt +++ b/.besouro/20161006142833483/zorroEpisodes.txt @@ -2,3 +2,4 @@ 1475753841367 test-first 3 105 true 1475753902746 test-first 3 61 true 1475753961693 test-first 3 58 true +1475754018479 test-first 3 56 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 9d9502e..1730e2f 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -229,4 +229,15 @@ public void testConvertingMM() { } } + @Test + public void testConvertingXIX() { + RomanNumerals rn = new RomanNumerals(); + try { + int converted = rn.convertToInteger("XIX"); + assertEquals(19, converted); + } + catch(RomanNumeralsException e) { + } + } + } From 540590b7279c1277cc04422589c511b8dc184ad1 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 6 Oct 2016 14:48:41 +0300 Subject: [PATCH 086/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 21 +++++++++++++++++---- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index adb6012..b1b65c3 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -58,3 +58,6 @@ UnitTestSessionAction 1475754018479 TestRomanNumerals.java OK RefactoringAction 1475754061109 TestRomanNumerals.java ADD void testConvertingXX()/2 METHOD RefactoringAction 1475754063634 TestRomanNumerals.java RENAME testConvertingXX()/2=>void testConvertingXIX() METHOD EditAction 1475754075143 TestRomanNumerals.java 4579 20 54 7 +UnitTestCaseAction 1475754076803 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475754076803 TestRomanNumerals.java FAIL +EditAction 1475754521009 RomanNumerals.java 2420 1 6 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index be830c6..5d60832 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -65,9 +65,22 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ } if(subStringValues.size() == 1) return subStringValues.get(0); - else if(subStringValues.get(0) Date: Thu, 6 Oct 2016 14:49:27 +0300 Subject: [PATCH 087/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index b1b65c3..1067e94 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -61,3 +61,6 @@ EditAction 1475754075143 TestRomanNumerals.java 4579 20 54 7 UnitTestCaseAction 1475754076803 TestRomanNumerals.java FAIL UnitTestSessionAction 1475754076803 TestRomanNumerals.java FAIL EditAction 1475754521009 RomanNumerals.java 2420 1 6 0 +UnitTestCaseAction 1475754523739 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475754523739 TestRomanNumerals.java FAIL +EditAction 1475754567603 RomanNumerals.java 2420 1 6 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 5d60832..87bcb80 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -65,7 +65,7 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ } if(subStringValues.size() == 1) return subStringValues.get(0); - else if(subStringValues.size() == 1){ + else if(subStringValues.size() == 2){ if(subStringValues.get(0) Date: Thu, 6 Oct 2016 14:50:48 +0300 Subject: [PATCH 088/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 1067e94..f9a089a 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -64,3 +64,6 @@ EditAction 1475754521009 RomanNumerals.java 2420 1 6 0 UnitTestCaseAction 1475754523739 TestRomanNumerals.java FAIL UnitTestSessionAction 1475754523739 TestRomanNumerals.java FAIL EditAction 1475754567603 RomanNumerals.java 2420 1 6 0 +UnitTestCaseAction 1475754569517 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475754569518 TestRomanNumerals.java FAIL +EditAction 1475754648927 RomanNumerals.java 2557 1 6 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 87bcb80..3259cfa 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -79,6 +79,10 @@ else if(subStringValues.size() == 2){ sum += subStringValues.get(1)-subStringValues.get(0); i++; } + else if(subStringValues.get(i)>subStringValues.get(i+1)){ + sum += subStringValues.get(1)+subStringValues.get(0); + i++; + } } return sum; } From 2000ac1fb60494f05d6d1d7061121f2e721803b3 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 6 Oct 2016 14:51:27 +0300 Subject: [PATCH 089/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index f9a089a..6117255 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -67,3 +67,6 @@ EditAction 1475754567603 RomanNumerals.java 2420 1 6 0 UnitTestCaseAction 1475754569517 TestRomanNumerals.java FAIL UnitTestSessionAction 1475754569518 TestRomanNumerals.java FAIL EditAction 1475754648927 RomanNumerals.java 2557 1 6 0 +UnitTestCaseAction 1475754652153 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475754652154 TestRomanNumerals.java FAIL +EditAction 1475754687805 RomanNumerals.java 2559 1 6 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 3259cfa..523fda2 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -74,7 +74,7 @@ else if(subStringValues.size() == 2){ else { int sum = 0; int size = subStringValues.size(); - for(int i = 0;i Date: Thu, 6 Oct 2016 14:59:53 +0300 Subject: [PATCH 090/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 6117255..c49635c 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -70,3 +70,6 @@ EditAction 1475754648927 RomanNumerals.java 2557 1 6 0 UnitTestCaseAction 1475754652153 TestRomanNumerals.java FAIL UnitTestSessionAction 1475754652154 TestRomanNumerals.java FAIL EditAction 1475754687805 RomanNumerals.java 2559 1 6 0 +UnitTestCaseAction 1475754693357 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475754693358 TestRomanNumerals.java FAIL +EditAction 1475755193200 RomanNumerals.java 2695 1 6 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 523fda2..7e7fc84 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -76,7 +76,10 @@ else if(subStringValues.size() == 2){ int size = subStringValues.size(); for(int i = 0;isubStringValues.get(i+1)){ From 971e9fb34653e4bf958016df7543a0bed9033d9a Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 6 Oct 2016 15:02:02 +0300 Subject: [PATCH 091/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 12 +++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index c49635c..436b25b 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -73,3 +73,6 @@ EditAction 1475754687805 RomanNumerals.java 2559 1 6 0 UnitTestCaseAction 1475754693357 TestRomanNumerals.java FAIL UnitTestSessionAction 1475754693358 TestRomanNumerals.java FAIL EditAction 1475755193200 RomanNumerals.java 2695 1 6 0 +UnitTestCaseAction 1475755194782 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475755194783 TestRomanNumerals.java FAIL +EditAction 1475755322840 RomanNumerals.java 2738 1 6 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 7e7fc84..6573f8c 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -76,14 +76,16 @@ else if(subStringValues.size() == 2){ int size = subStringValues.size(); for(int i = 0;isubStringValues.get(i+1)){ - sum += subStringValues.get(1)+subStringValues.get(0); + if(subStringValues.get(i+1) Date: Thu, 6 Oct 2016 15:04:03 +0300 Subject: [PATCH 092/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 6 ++++++ .../20161006142833483/besouroEpisodes.txt | 19 +++++++++++++++++++ .../randomHeuristicEpisodes.txt | 1 + .besouro/20161006142833483/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 13 +++++++++++++ 5 files changed, 40 insertions(+) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 436b25b..614bb19 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -76,3 +76,9 @@ EditAction 1475755193200 RomanNumerals.java 2695 1 6 0 UnitTestCaseAction 1475755194782 TestRomanNumerals.java FAIL UnitTestSessionAction 1475755194783 TestRomanNumerals.java FAIL EditAction 1475755322840 RomanNumerals.java 2738 1 6 0 +UnitTestCaseAction 1475755325720 TestRomanNumerals.java OK +UnitTestSessionAction 1475755325720 TestRomanNumerals.java OK +RefactoringAction 1475755431790 TestRomanNumerals.java ADD void testConvertingDD()/2 METHOD +RefactoringAction 1475755437308 TestRomanNumerals.java RENAME testConvertingDD()/2=>void testConvertingV() METHOD +RefactoringAction 1475755438327 TestRomanNumerals.java RENAME testConvertingV()=>void testConvertingVX() METHOD +EditAction 1475755443408 TestRomanNumerals.java 4823 21 58 8 diff --git a/.besouro/20161006142833483/besouroEpisodes.txt b/.besouro/20161006142833483/besouroEpisodes.txt index 1be7bda..ac164e0 100644 --- a/.besouro/20161006142833483/besouroEpisodes.txt +++ b/.besouro/20161006142833483/besouroEpisodes.txt @@ -12,3 +12,22 @@ 1475753961695 test-first 3 39 true 1475754018479 test-first 3 40 true 1475754018480 test-first 3 40 true +1475755325720 test-first 3 1264 true +1475755325721 test-first 3 1264 true +1475755325722 test-first 3 1264 true +1475755325723 test-first 3 1264 true +1475755325724 test-first 3 1264 true +1475755325725 test-first 3 1264 true +1475755325726 test-first 3 1264 true +1475755325727 test-first 3 1264 true +1475755325728 test-first 3 1264 true +1475755325729 test-first 3 1264 true +1475755325730 test-first 3 1264 true +1475755325731 test-first 3 1264 true +1475755325732 test-first 3 1264 true +1475755325733 test-first 3 1264 true +1475755325734 test-first 3 1264 true +1475755325735 test-first 3 1264 true +1475755325736 test-first 3 1264 true +1475755325737 test-first 3 1264 true +1475755325738 test-first 3 1264 true diff --git a/.besouro/20161006142833483/randomHeuristicEpisodes.txt b/.besouro/20161006142833483/randomHeuristicEpisodes.txt index f5ad036..5b5021a 100644 --- a/.besouro/20161006142833483/randomHeuristicEpisodes.txt +++ b/.besouro/20161006142833483/randomHeuristicEpisodes.txt @@ -3,3 +3,4 @@ 1475753902746 test-first 3 42 true 1475753961693 test-first 3 39 true 1475754018479 test-first 3 40 true +1475755325720 test-first 3 1264 true diff --git a/.besouro/20161006142833483/zorroEpisodes.txt b/.besouro/20161006142833483/zorroEpisodes.txt index d733f2c..59007e0 100644 --- a/.besouro/20161006142833483/zorroEpisodes.txt +++ b/.besouro/20161006142833483/zorroEpisodes.txt @@ -3,3 +3,4 @@ 1475753902746 test-first 3 61 true 1475753961693 test-first 3 58 true 1475754018479 test-first 3 56 true +1475755325720 test-first 3 1307 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 1730e2f..f574aa2 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -240,4 +240,17 @@ public void testConvertingXIX() { } } + @Test + public void testConvertingVX() { + RomanNumerals rn = new RomanNumerals(); + boolean thrown = false; + try { + rn.convertToInteger("VX"); + } + catch(RomanNumeralsException e) { + thrown = true; + } + assertEquals(true, thrown); + } + } From 80f43dc999f9ef3761800a25b52727193cf00814 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 6 Oct 2016 15:05:18 +0300 Subject: [PATCH 093/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 2 ++ 2 files changed, 5 insertions(+) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 614bb19..78f3972 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -82,3 +82,6 @@ RefactoringAction 1475755431790 TestRomanNumerals.java ADD void testConvertingDD RefactoringAction 1475755437308 TestRomanNumerals.java RENAME testConvertingDD()/2=>void testConvertingV() METHOD RefactoringAction 1475755438327 TestRomanNumerals.java RENAME testConvertingV()=>void testConvertingVX() METHOD EditAction 1475755443408 TestRomanNumerals.java 4823 21 58 8 +UnitTestCaseAction 1475755445804 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475755445805 TestRomanNumerals.java FAIL +EditAction 1475755518213 RomanNumerals.java 2858 1 6 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 6573f8c..c7f30dd 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -76,6 +76,8 @@ else if(subStringValues.size() == 2){ int size = subStringValues.size(); for(int i = 0;i Date: Thu, 6 Oct 2016 15:06:59 +0300 Subject: [PATCH 094/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 78f3972..3876dab 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -85,3 +85,6 @@ EditAction 1475755443408 TestRomanNumerals.java 4823 21 58 8 UnitTestCaseAction 1475755445804 TestRomanNumerals.java FAIL UnitTestSessionAction 1475755445805 TestRomanNumerals.java FAIL EditAction 1475755518213 RomanNumerals.java 2858 1 6 0 +UnitTestCaseAction 1475755523875 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475755523875 TestRomanNumerals.java FAIL +EditAction 1475755619867 RomanNumerals.java 2983 1 6 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index c7f30dd..d8d6398 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -66,8 +66,11 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ if(subStringValues.size() == 1) return subStringValues.get(0); else if(subStringValues.size() == 2){ - if(subStringValues.get(0) Date: Thu, 6 Oct 2016 15:07:14 +0300 Subject: [PATCH 095/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ .besouro/20161006142833483/besouroEpisodes.txt | 6 ++++++ .besouro/20161006142833483/randomHeuristicEpisodes.txt | 1 + .besouro/20161006142833483/zorroEpisodes.txt | 1 + src/RomanNumerals.java | 9 --------- 5 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 3876dab..e73e9cf 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -88,3 +88,6 @@ EditAction 1475755518213 RomanNumerals.java 2858 1 6 0 UnitTestCaseAction 1475755523875 TestRomanNumerals.java FAIL UnitTestSessionAction 1475755523875 TestRomanNumerals.java FAIL EditAction 1475755619867 RomanNumerals.java 2983 1 6 0 +UnitTestCaseAction 1475755621086 TestRomanNumerals.java OK +UnitTestSessionAction 1475755621087 TestRomanNumerals.java OK +EditAction 1475755634005 RomanNumerals.java 2637 1 6 0 diff --git a/.besouro/20161006142833483/besouroEpisodes.txt b/.besouro/20161006142833483/besouroEpisodes.txt index ac164e0..16edce8 100644 --- a/.besouro/20161006142833483/besouroEpisodes.txt +++ b/.besouro/20161006142833483/besouroEpisodes.txt @@ -31,3 +31,9 @@ 1475755325736 test-first 3 1264 true 1475755325737 test-first 3 1264 true 1475755325738 test-first 3 1264 true +1475755621087 test-first 3 189 true +1475755621088 test-first 3 189 true +1475755621089 test-first 3 189 true +1475755621090 test-first 3 189 true +1475755621091 test-first 3 189 true +1475755621092 test-first 3 189 true diff --git a/.besouro/20161006142833483/randomHeuristicEpisodes.txt b/.besouro/20161006142833483/randomHeuristicEpisodes.txt index 5b5021a..ae727f4 100644 --- a/.besouro/20161006142833483/randomHeuristicEpisodes.txt +++ b/.besouro/20161006142833483/randomHeuristicEpisodes.txt @@ -4,3 +4,4 @@ 1475753961693 test-first 3 39 true 1475754018479 test-first 3 40 true 1475755325720 test-first 3 1264 true +1475755621087 test-first 3 189 true diff --git a/.besouro/20161006142833483/zorroEpisodes.txt b/.besouro/20161006142833483/zorroEpisodes.txt index 59007e0..f2e0412 100644 --- a/.besouro/20161006142833483/zorroEpisodes.txt +++ b/.besouro/20161006142833483/zorroEpisodes.txt @@ -4,3 +4,4 @@ 1475753961693 test-first 3 58 true 1475754018479 test-first 3 56 true 1475755325720 test-first 3 1307 true +1475755621087 test-first 3 295 true diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index d8d6398..3d58fcf 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -65,15 +65,6 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ } if(subStringValues.size() == 1) return subStringValues.get(0); - else if(subStringValues.size() == 2){ - if(subStringValues.get(0) Date: Thu, 6 Oct 2016 15:07:40 +0300 Subject: [PATCH 096/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index e73e9cf..1f040f5 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -91,3 +91,6 @@ EditAction 1475755619867 RomanNumerals.java 2983 1 6 0 UnitTestCaseAction 1475755621086 TestRomanNumerals.java OK UnitTestSessionAction 1475755621087 TestRomanNumerals.java OK EditAction 1475755634005 RomanNumerals.java 2637 1 6 0 +UnitTestCaseAction 1475755635897 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475755635898 TestRomanNumerals.java FAIL +EditAction 1475755660616 RomanNumerals.java 2983 1 6 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 3d58fcf..d8d6398 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -65,6 +65,15 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ } if(subStringValues.size() == 1) return subStringValues.get(0); + else if(subStringValues.size() == 2){ + if(subStringValues.get(0) Date: Thu, 6 Oct 2016 15:10:14 +0300 Subject: [PATCH 097/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ .besouro/20161006142833483/besouroEpisodes.txt | 1 + .besouro/20161006142833483/randomHeuristicEpisodes.txt | 1 + .besouro/20161006142833483/zorroEpisodes.txt | 1 + src/RomanNumerals.java | 4 ++-- 5 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 1f040f5..1807b7e 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -94,3 +94,6 @@ EditAction 1475755634005 RomanNumerals.java 2637 1 6 0 UnitTestCaseAction 1475755635897 TestRomanNumerals.java FAIL UnitTestSessionAction 1475755635898 TestRomanNumerals.java FAIL EditAction 1475755660616 RomanNumerals.java 2983 1 6 0 +UnitTestCaseAction 1475755691341 TestRomanNumerals.java OK +UnitTestSessionAction 1475755691342 TestRomanNumerals.java OK +EditAction 1475755814024 RomanNumerals.java 3055 1 6 0 diff --git a/.besouro/20161006142833483/besouroEpisodes.txt b/.besouro/20161006142833483/besouroEpisodes.txt index 16edce8..8b6067b 100644 --- a/.besouro/20161006142833483/besouroEpisodes.txt +++ b/.besouro/20161006142833483/besouroEpisodes.txt @@ -37,3 +37,4 @@ 1475755621090 test-first 3 189 true 1475755621091 test-first 3 189 true 1475755621092 test-first 3 189 true +1475755691342 refactoring 2A 57 true diff --git a/.besouro/20161006142833483/randomHeuristicEpisodes.txt b/.besouro/20161006142833483/randomHeuristicEpisodes.txt index ae727f4..3756d63 100644 --- a/.besouro/20161006142833483/randomHeuristicEpisodes.txt +++ b/.besouro/20161006142833483/randomHeuristicEpisodes.txt @@ -5,3 +5,4 @@ 1475754018479 test-first 3 40 true 1475755325720 test-first 3 1264 true 1475755621087 test-first 3 189 true +1475755691342 refactoring 2A 57 true diff --git a/.besouro/20161006142833483/zorroEpisodes.txt b/.besouro/20161006142833483/zorroEpisodes.txt index f2e0412..daccfb3 100644 --- a/.besouro/20161006142833483/zorroEpisodes.txt +++ b/.besouro/20161006142833483/zorroEpisodes.txt @@ -5,3 +5,4 @@ 1475754018479 test-first 3 56 true 1475755325720 test-first 3 1307 true 1475755621087 test-first 3 295 true +1475755691342 refactoring 2A 70 true diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index d8d6398..15a4363 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -44,8 +44,6 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ switch(s) { case "I": subStringValues.add(1); break; - case "II": subStringValues.add(2); - break; case "III": subStringValues.add(3); break; case "V": subStringValues.add(5); @@ -78,6 +76,8 @@ else if(subStringValues.size() == 2){ int sum = 0; int size = subStringValues.size(); for(int i = 0;i Date: Thu, 6 Oct 2016 15:12:00 +0300 Subject: [PATCH 098/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 1807b7e..1ce6ffa 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -97,3 +97,6 @@ EditAction 1475755660616 RomanNumerals.java 2983 1 6 0 UnitTestCaseAction 1475755691341 TestRomanNumerals.java OK UnitTestSessionAction 1475755691342 TestRomanNumerals.java OK EditAction 1475755814024 RomanNumerals.java 3055 1 6 0 +UnitTestCaseAction 1475755815637 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475755815638 TestRomanNumerals.java FAIL +EditAction 1475755920240 RomanNumerals.java 3162 1 6 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 15a4363..c2f5604 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -76,8 +76,11 @@ else if(subStringValues.size() == 2){ int sum = 0; int size = subStringValues.size(); for(int i = 0;i Date: Thu, 6 Oct 2016 15:12:10 +0300 Subject: [PATCH 099/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 1ce6ffa..471cdc5 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -100,3 +100,6 @@ EditAction 1475755814024 RomanNumerals.java 3055 1 6 0 UnitTestCaseAction 1475755815637 TestRomanNumerals.java FAIL UnitTestSessionAction 1475755815638 TestRomanNumerals.java FAIL EditAction 1475755920240 RomanNumerals.java 3162 1 6 0 +UnitTestCaseAction 1475755922076 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475755922076 TestRomanNumerals.java FAIL +EditAction 1475755930701 RomanNumerals.java 3113 1 6 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index c2f5604..713b5f3 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -44,8 +44,6 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ switch(s) { case "I": subStringValues.add(1); break; - case "III": subStringValues.add(3); - break; case "V": subStringValues.add(5); break; case "X": subStringValues.add(10); From f9a55dda54e9e17e6c87f30a384be432681eda71 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 6 Oct 2016 15:12:26 +0300 Subject: [PATCH 100/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 9 --------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 471cdc5..acb0c37 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -103,3 +103,6 @@ EditAction 1475755920240 RomanNumerals.java 3162 1 6 0 UnitTestCaseAction 1475755922076 TestRomanNumerals.java FAIL UnitTestSessionAction 1475755922076 TestRomanNumerals.java FAIL EditAction 1475755930701 RomanNumerals.java 3113 1 6 0 +UnitTestCaseAction 1475755933596 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475755933596 TestRomanNumerals.java FAIL +EditAction 1475755946268 RomanNumerals.java 2767 1 6 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 713b5f3..35b2883 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -61,15 +61,6 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ } if(subStringValues.size() == 1) return subStringValues.get(0); - else if(subStringValues.size() == 2){ - if(subStringValues.get(0) Date: Thu, 6 Oct 2016 15:13:36 +0300 Subject: [PATCH 101/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 11 ++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index acb0c37..65fdb85 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -106,3 +106,6 @@ EditAction 1475755930701 RomanNumerals.java 3113 1 6 0 UnitTestCaseAction 1475755933596 TestRomanNumerals.java FAIL UnitTestSessionAction 1475755933596 TestRomanNumerals.java FAIL EditAction 1475755946268 RomanNumerals.java 2767 1 6 0 +UnitTestCaseAction 1475755948923 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475755948923 TestRomanNumerals.java FAIL +EditAction 1475756016620 RomanNumerals.java 3118 1 6 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 35b2883..b9c8885 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -61,6 +61,15 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ } if(subStringValues.size() == 1) return subStringValues.get(0); + else if(subStringValues.size() == 2){ + if(subStringValues.get(0) Date: Thu, 6 Oct 2016 15:22:48 +0300 Subject: [PATCH 102/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 65fdb85..10ba94a 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -109,3 +109,6 @@ EditAction 1475755946268 RomanNumerals.java 2767 1 6 0 UnitTestCaseAction 1475755948923 TestRomanNumerals.java FAIL UnitTestSessionAction 1475755948923 TestRomanNumerals.java FAIL EditAction 1475756016620 RomanNumerals.java 3118 1 6 0 +UnitTestCaseAction 1475756019140 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475756019140 TestRomanNumerals.java FAIL +EditAction 1475756568179 RomanNumerals.java 3116 1 6 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index b9c8885..87ff3b9 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -36,7 +36,7 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ if(counter == 1) subStrings.add(romanNum.substring(oldPos, oldPos+1)); else - subStrings.add(romanNum.substring(oldPos, oldPos+counter-1)); + subStrings.add(romanNum.substring(oldPos, oldPos+counter)); counter = 1; } From 9d4ab8000efac14e05fb7c3cd9617024e782bcec Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 6 Oct 2016 15:24:48 +0300 Subject: [PATCH 103/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 7 +++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 10ba94a..bc3714c 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -112,3 +112,6 @@ EditAction 1475756016620 RomanNumerals.java 3118 1 6 0 UnitTestCaseAction 1475756019140 TestRomanNumerals.java FAIL UnitTestSessionAction 1475756019140 TestRomanNumerals.java FAIL EditAction 1475756568179 RomanNumerals.java 3116 1 6 0 +UnitTestCaseAction 1475756571083 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475756571083 TestRomanNumerals.java FAIL +EditAction 1475756688272 RomanNumerals.java 3042 1 6 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 87ff3b9..f1427ca 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -33,10 +33,9 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ break; } } - if(counter == 1) - subStrings.add(romanNum.substring(oldPos, oldPos+1)); - else - subStrings.add(romanNum.substring(oldPos, oldPos+counter)); + + subStrings.add(romanNum.substring(oldPos, oldPos+1)); + c += counter; counter = 1; } From db9f12149fb66bb145bdb63b82ae7c70f74f2fba Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 6 Oct 2016 15:26:03 +0300 Subject: [PATCH 104/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index bc3714c..a1ff6f6 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -115,3 +115,6 @@ EditAction 1475756568179 RomanNumerals.java 3116 1 6 0 UnitTestCaseAction 1475756571083 TestRomanNumerals.java FAIL UnitTestSessionAction 1475756571083 TestRomanNumerals.java FAIL EditAction 1475756688272 RomanNumerals.java 3042 1 6 0 +UnitTestCaseAction 1475756690172 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475756690172 TestRomanNumerals.java FAIL +EditAction 1475756763536 RomanNumerals.java 3062 1 6 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index f1427ca..fb4bf5f 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -35,7 +35,8 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ } subStrings.add(romanNum.substring(oldPos, oldPos+1)); - c += counter; + if(counter>1) + c += counter-1; counter = 1; } From 190008ac22d1b787e340d0d0ca559d883a264d7f Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 6 Oct 2016 15:27:00 +0300 Subject: [PATCH 105/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 1 + 2 files changed, 4 insertions(+) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index a1ff6f6..e6de522 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -118,3 +118,6 @@ EditAction 1475756688272 RomanNumerals.java 3042 1 6 0 UnitTestCaseAction 1475756690172 TestRomanNumerals.java FAIL UnitTestSessionAction 1475756690172 TestRomanNumerals.java FAIL EditAction 1475756763536 RomanNumerals.java 3062 1 6 0 +UnitTestCaseAction 1475756765637 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475756765637 TestRomanNumerals.java FAIL +EditAction 1475756819989 RomanNumerals.java 3107 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index fb4bf5f..31f15da 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -39,6 +39,7 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ c += counter-1; counter = 1; } + System.out.println(subStrings.toString()); for(String s: subStrings) { switch(s) { From e4d4f8d9348b8d0f32386332b910ca73136fca04 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 6 Oct 2016 15:29:38 +0300 Subject: [PATCH 106/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index e6de522..cdcbee5 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -121,3 +121,6 @@ EditAction 1475756763536 RomanNumerals.java 3062 1 6 0 UnitTestCaseAction 1475756765637 TestRomanNumerals.java FAIL UnitTestSessionAction 1475756765637 TestRomanNumerals.java FAIL EditAction 1475756819989 RomanNumerals.java 3107 1 7 0 +UnitTestCaseAction 1475756821466 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475756821466 TestRomanNumerals.java FAIL +EditAction 1475756978120 RomanNumerals.java 3173 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 31f15da..3077300 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -35,7 +35,7 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ } subStrings.add(romanNum.substring(oldPos, oldPos+1)); - if(counter>1) + if(counter>1 && currentChar == 'V' || currentChar == 'L' || currentChar == 'D') c += counter-1; counter = 1; } From 75d38a939c8c2d329f6d2c458c6d548570fc2720 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 6 Oct 2016 15:30:07 +0300 Subject: [PATCH 107/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ .besouro/20161006142833483/besouroEpisodes.txt | 2 ++ .besouro/20161006142833483/randomHeuristicEpisodes.txt | 1 + .besouro/20161006142833483/zorroEpisodes.txt | 1 + src/RomanNumerals.java | 9 --------- 5 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index cdcbee5..65ef971 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -124,3 +124,6 @@ EditAction 1475756819989 RomanNumerals.java 3107 1 7 0 UnitTestCaseAction 1475756821466 TestRomanNumerals.java FAIL UnitTestSessionAction 1475756821466 TestRomanNumerals.java FAIL EditAction 1475756978120 RomanNumerals.java 3173 1 7 0 +UnitTestCaseAction 1475756982946 TestRomanNumerals.java OK +UnitTestSessionAction 1475756982946 TestRomanNumerals.java OK +EditAction 1475757007242 RomanNumerals.java 2827 1 7 0 diff --git a/.besouro/20161006142833483/besouroEpisodes.txt b/.besouro/20161006142833483/besouroEpisodes.txt index 8b6067b..667a928 100644 --- a/.besouro/20161006142833483/besouroEpisodes.txt +++ b/.besouro/20161006142833483/besouroEpisodes.txt @@ -38,3 +38,5 @@ 1475755621091 test-first 3 189 true 1475755621092 test-first 3 189 true 1475755691342 refactoring 2A 57 true +1475756982946 refactoring 2A 1168 true +1475756982947 production 1 1168 false diff --git a/.besouro/20161006142833483/randomHeuristicEpisodes.txt b/.besouro/20161006142833483/randomHeuristicEpisodes.txt index 3756d63..20b2eda 100644 --- a/.besouro/20161006142833483/randomHeuristicEpisodes.txt +++ b/.besouro/20161006142833483/randomHeuristicEpisodes.txt @@ -6,3 +6,4 @@ 1475755325720 test-first 3 1264 true 1475755621087 test-first 3 189 true 1475755691342 refactoring 2A 57 true +1475756982946 refactoring 2A 1168 true diff --git a/.besouro/20161006142833483/zorroEpisodes.txt b/.besouro/20161006142833483/zorroEpisodes.txt index daccfb3..e4e9994 100644 --- a/.besouro/20161006142833483/zorroEpisodes.txt +++ b/.besouro/20161006142833483/zorroEpisodes.txt @@ -6,3 +6,4 @@ 1475755325720 test-first 3 1307 true 1475755621087 test-first 3 295 true 1475755691342 refactoring 2A 70 true +1475756982946 refactoring 2A 1291 true diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 3077300..eb1081e 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -62,15 +62,6 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ } if(subStringValues.size() == 1) return subStringValues.get(0); - else if(subStringValues.size() == 2){ - if(subStringValues.get(0) Date: Thu, 6 Oct 2016 15:31:38 +0300 Subject: [PATCH 108/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 10 ++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 65ef971..7a9d30a 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -127,3 +127,6 @@ EditAction 1475756978120 RomanNumerals.java 3173 1 7 0 UnitTestCaseAction 1475756982946 TestRomanNumerals.java OK UnitTestSessionAction 1475756982946 TestRomanNumerals.java OK EditAction 1475757007242 RomanNumerals.java 2827 1 7 0 +UnitTestCaseAction 1475757010085 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475757010086 TestRomanNumerals.java FAIL +EditAction 1475757098408 RomanNumerals.java 2859 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index eb1081e..68851f4 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -66,10 +66,12 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ int sum = 0; int size = subStringValues.size(); for(int i = 0;i 2) { + if(subStringValues.get(i)==subStringValues.get(i+1) && subStringValues.get(i)==subStringValues.get(i+2)) { + sum += subStringValues.get(i) + subStringValues.get(i+1) + subStringValues.get(i+2); + i++; + i++; + } } else if(subStringValues.get(i) Date: Thu, 6 Oct 2016 15:33:19 +0300 Subject: [PATCH 109/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 7a9d30a..41449d5 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -130,3 +130,6 @@ EditAction 1475757007242 RomanNumerals.java 2827 1 7 0 UnitTestCaseAction 1475757010085 TestRomanNumerals.java FAIL UnitTestSessionAction 1475757010086 TestRomanNumerals.java FAIL EditAction 1475757098408 RomanNumerals.java 2859 1 7 0 +UnitTestCaseAction 1475757102028 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475757102028 TestRomanNumerals.java FAIL +EditAction 1475757199519 RomanNumerals.java 3001 1 0 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 68851f4..a1c0695 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -73,6 +73,10 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ i++; } } + else if(subStringValues.get(i)==subStringValues.get(i+1)) { + sum += subStringValues.get(i) + subStringValues.get(i+1) + i++; + } else if(subStringValues.get(i) Date: Thu, 6 Oct 2016 15:33:31 +0300 Subject: [PATCH 110/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 2 ++ src/RomanNumerals.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 41449d5..58121d0 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -133,3 +133,5 @@ EditAction 1475757098408 RomanNumerals.java 2859 1 7 0 UnitTestCaseAction 1475757102028 TestRomanNumerals.java FAIL UnitTestSessionAction 1475757102028 TestRomanNumerals.java FAIL EditAction 1475757199519 RomanNumerals.java 3001 1 0 0 +CompilationAction 1475757199681 RomanNumerals.java +EditAction 1475757211269 RomanNumerals.java 3002 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index a1c0695..1831152 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -74,7 +74,7 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ } } else if(subStringValues.get(i)==subStringValues.get(i+1)) { - sum += subStringValues.get(i) + subStringValues.get(i+1) + sum += subStringValues.get(i) + subStringValues.get(i+1); i++; } else if(subStringValues.get(i) Date: Thu, 6 Oct 2016 15:35:19 +0300 Subject: [PATCH 111/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 1 + 2 files changed, 4 insertions(+) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 58121d0..9974056 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -135,3 +135,6 @@ UnitTestSessionAction 1475757102028 TestRomanNumerals.java FAIL EditAction 1475757199519 RomanNumerals.java 3001 1 0 0 CompilationAction 1475757199681 RomanNumerals.java EditAction 1475757211269 RomanNumerals.java 3002 1 7 0 +UnitTestCaseAction 1475757213401 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475757213402 TestRomanNumerals.java FAIL +EditAction 1475757319017 RomanNumerals.java 3032 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 1831152..19382b6 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -75,6 +75,7 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ } else if(subStringValues.get(i)==subStringValues.get(i+1)) { sum += subStringValues.get(i) + subStringValues.get(i+1); + System.out.println(sum); i++; } else if(subStringValues.get(i) Date: Thu, 6 Oct 2016 15:35:42 +0300 Subject: [PATCH 112/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 1 + 2 files changed, 4 insertions(+) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 9974056..1c4ab45 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -138,3 +138,6 @@ EditAction 1475757211269 RomanNumerals.java 3002 1 7 0 UnitTestCaseAction 1475757213401 TestRomanNumerals.java FAIL UnitTestSessionAction 1475757213402 TestRomanNumerals.java FAIL EditAction 1475757319017 RomanNumerals.java 3032 1 7 0 +UnitTestCaseAction 1475757320455 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475757320455 TestRomanNumerals.java FAIL +EditAction 1475757342549 RomanNumerals.java 3063 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 19382b6..7d425bc 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -71,6 +71,7 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ sum += subStringValues.get(i) + subStringValues.get(i+1) + subStringValues.get(i+2); i++; i++; + System.out.println(sum); } } else if(subStringValues.get(i)==subStringValues.get(i+1)) { From 1def2e91699b4857eff7ad50e5af5c058d3c75d7 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 6 Oct 2016 15:37:17 +0300 Subject: [PATCH 113/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 1 + 2 files changed, 4 insertions(+) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 1c4ab45..c378ff9 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -141,3 +141,6 @@ EditAction 1475757319017 RomanNumerals.java 3032 1 7 0 UnitTestCaseAction 1475757320455 TestRomanNumerals.java FAIL UnitTestSessionAction 1475757320455 TestRomanNumerals.java FAIL EditAction 1475757342549 RomanNumerals.java 3063 1 7 0 +UnitTestCaseAction 1475757343953 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475757343953 TestRomanNumerals.java FAIL +EditAction 1475757437666 RomanNumerals.java 3116 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 7d425bc..56e3b9f 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -77,6 +77,7 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ else if(subStringValues.get(i)==subStringValues.get(i+1)) { sum += subStringValues.get(i) + subStringValues.get(i+1); System.out.println(sum); + System.out.println(subStringValues.toString()); i++; } else if(subStringValues.get(i) Date: Thu, 6 Oct 2016 15:38:57 +0300 Subject: [PATCH 114/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 1 + 2 files changed, 4 insertions(+) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index c378ff9..70f618c 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -144,3 +144,6 @@ EditAction 1475757342549 RomanNumerals.java 3063 1 7 0 UnitTestCaseAction 1475757343953 TestRomanNumerals.java FAIL UnitTestSessionAction 1475757343953 TestRomanNumerals.java FAIL EditAction 1475757437666 RomanNumerals.java 3116 1 7 0 +UnitTestCaseAction 1475757439802 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475757439802 TestRomanNumerals.java FAIL +EditAction 1475757537261 RomanNumerals.java 3167 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 56e3b9f..667c024 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -56,6 +56,7 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ case "D": subStringValues.add(500); break; case "M": subStringValues.add(1000); + System.out.println(subStringValues.toString()); break; default: subStringValues.add(0); } From ad3855026d52dd89bbca43e47c952c1c4d2e335d Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 6 Oct 2016 15:40:49 +0300 Subject: [PATCH 115/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 1 + 2 files changed, 4 insertions(+) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 70f618c..6ca69c3 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -147,3 +147,6 @@ EditAction 1475757437666 RomanNumerals.java 3116 1 7 0 UnitTestCaseAction 1475757439802 TestRomanNumerals.java FAIL UnitTestSessionAction 1475757439802 TestRomanNumerals.java FAIL EditAction 1475757537261 RomanNumerals.java 3167 1 7 0 +UnitTestCaseAction 1475757539099 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475757539099 TestRomanNumerals.java FAIL +EditAction 1475757649074 RomanNumerals.java 3197 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 667c024..79e7162 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -94,6 +94,7 @@ else if(subStringValues.get(i)>subStringValues.get(i+1)){ } else sum += subStringValues.get(1)+subStringValues.get(0); + System.out.println(sum); i++; } } From 37d6de0c76638d437719ceeea75cba4a49b5b000 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 6 Oct 2016 15:41:04 +0300 Subject: [PATCH 116/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 6ca69c3..fdf82fb 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -150,3 +150,6 @@ EditAction 1475757537261 RomanNumerals.java 3167 1 7 0 UnitTestCaseAction 1475757539099 TestRomanNumerals.java FAIL UnitTestSessionAction 1475757539099 TestRomanNumerals.java FAIL EditAction 1475757649074 RomanNumerals.java 3197 1 7 0 +UnitTestCaseAction 1475757650958 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475757650958 TestRomanNumerals.java FAIL +EditAction 1475757664273 RomanNumerals.java 3195 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 79e7162..6015d71 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -94,10 +94,10 @@ else if(subStringValues.get(i)>subStringValues.get(i+1)){ } else sum += subStringValues.get(1)+subStringValues.get(0); - System.out.println(sum); i++; } } + System.out.println(sum); return sum; } } From 8dac14ab123e58cd5e894f90742026ad5af32b56 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 6 Oct 2016 15:42:14 +0300 Subject: [PATCH 117/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index fdf82fb..3279259 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -153,3 +153,6 @@ EditAction 1475757649074 RomanNumerals.java 3197 1 7 0 UnitTestCaseAction 1475757650958 TestRomanNumerals.java FAIL UnitTestSessionAction 1475757650958 TestRomanNumerals.java FAIL EditAction 1475757664273 RomanNumerals.java 3195 1 7 0 +UnitTestCaseAction 1475757667443 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475757667443 TestRomanNumerals.java FAIL +EditAction 1475757734023 RomanNumerals.java 3167 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 6015d71..667c024 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -97,7 +97,6 @@ else if(subStringValues.get(i)>subStringValues.get(i+1)){ i++; } } - System.out.println(sum); return sum; } } From 90225dd61e35ca2e6f07795f810dda03f1b7cb03 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 6 Oct 2016 15:45:53 +0300 Subject: [PATCH 118/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 3279259..190fb92 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -156,3 +156,6 @@ EditAction 1475757664273 RomanNumerals.java 3195 1 7 0 UnitTestCaseAction 1475757667443 TestRomanNumerals.java FAIL UnitTestSessionAction 1475757667443 TestRomanNumerals.java FAIL EditAction 1475757734023 RomanNumerals.java 3167 1 7 0 +UnitTestCaseAction 1475757736774 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475757736774 TestRomanNumerals.java FAIL +EditAction 1475757953294 RomanNumerals.java 3211 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 667c024..edbe5ed 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -75,8 +75,8 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ System.out.println(sum); } } - else if(subStringValues.get(i)==subStringValues.get(i+1)) { - sum += subStringValues.get(i) + subStringValues.get(i+1); + else if(subStringValues.get(i).intValue()==subStringValues.get(i+1).intValue()) { + sum += subStringValues.get(i).intValue() + subStringValues.get(i+1).intValue(); System.out.println(sum); System.out.println(subStringValues.toString()); i++; From 688126801d65c152d8d37a6175983825c803a143 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 6 Oct 2016 15:47:36 +0300 Subject: [PATCH 119/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 9 +++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 190fb92..334f304 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -159,3 +159,6 @@ EditAction 1475757734023 RomanNumerals.java 3167 1 7 0 UnitTestCaseAction 1475757736774 TestRomanNumerals.java FAIL UnitTestSessionAction 1475757736774 TestRomanNumerals.java FAIL EditAction 1475757953294 RomanNumerals.java 3211 1 7 0 +UnitTestCaseAction 1475757954963 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475757954963 TestRomanNumerals.java FAIL +EditAction 1475758056354 RomanNumerals.java 3185 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index edbe5ed..b25995c 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -62,23 +62,20 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ } } if(subStringValues.size() == 1) - return subStringValues.get(0); + return subStringValues.get(0).intValue(); else { int sum = 0; int size = subStringValues.size(); for(int i = 0;i 2) { - if(subStringValues.get(i)==subStringValues.get(i+1) && subStringValues.get(i)==subStringValues.get(i+2)) { - sum += subStringValues.get(i) + subStringValues.get(i+1) + subStringValues.get(i+2); + if(subStringValues.get(i).intValue()==subStringValues.get(i+1).intValue() && subStringValues.get(i).intValue()==subStringValues.get(i+2).intValue()) { + sum += subStringValues.get(i).intValue() + subStringValues.get(i+1).intValue() + subStringValues.get(i+2).intValue(); i++; i++; - System.out.println(sum); } } else if(subStringValues.get(i).intValue()==subStringValues.get(i+1).intValue()) { sum += subStringValues.get(i).intValue() + subStringValues.get(i+1).intValue(); - System.out.println(sum); - System.out.println(subStringValues.toString()); i++; } else if(subStringValues.get(i) Date: Thu, 6 Oct 2016 15:48:36 +0300 Subject: [PATCH 120/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 334f304..f26d787 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -162,3 +162,6 @@ EditAction 1475757953294 RomanNumerals.java 3211 1 7 0 UnitTestCaseAction 1475757954963 TestRomanNumerals.java FAIL UnitTestSessionAction 1475757954963 TestRomanNumerals.java FAIL EditAction 1475758056354 RomanNumerals.java 3185 1 7 0 +UnitTestCaseAction 1475758059592 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475758059593 TestRomanNumerals.java FAIL +EditAction 1475758116914 RomanNumerals.java 3134 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index b25995c..a188f46 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -56,7 +56,6 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ case "D": subStringValues.add(500); break; case "M": subStringValues.add(1000); - System.out.println(subStringValues.toString()); break; default: subStringValues.add(0); } From 7a6afaee93cb39605411e7f14eef137f809d820a Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 6 Oct 2016 15:50:39 +0300 Subject: [PATCH 121/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 1 + 2 files changed, 4 insertions(+) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index f26d787..9c7c417 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -165,3 +165,6 @@ EditAction 1475758056354 RomanNumerals.java 3185 1 7 0 UnitTestCaseAction 1475758059592 TestRomanNumerals.java FAIL UnitTestSessionAction 1475758059593 TestRomanNumerals.java FAIL EditAction 1475758116914 RomanNumerals.java 3134 1 7 0 +UnitTestCaseAction 1475758118130 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475758118130 TestRomanNumerals.java FAIL +EditAction 1475758239587 RomanNumerals.java 3167 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index a188f46..749cece 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -86,6 +86,7 @@ else if(subStringValues.get(i)subStringValues.get(i+1)){ if(subStringValues.get(i+1) Date: Thu, 6 Oct 2016 15:51:22 +0300 Subject: [PATCH 122/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 9c7c417..3ea7f86 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -168,3 +168,6 @@ EditAction 1475758116914 RomanNumerals.java 3134 1 7 0 UnitTestCaseAction 1475758118130 TestRomanNumerals.java FAIL UnitTestSessionAction 1475758118130 TestRomanNumerals.java FAIL EditAction 1475758239587 RomanNumerals.java 3167 1 7 0 +UnitTestCaseAction 1475758240790 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475758240791 TestRomanNumerals.java FAIL +EditAction 1475758282860 RomanNumerals.java 3189 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 749cece..7a9adb2 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -83,7 +83,7 @@ else if(subStringValues.get(i)subStringValues.get(i+1)){ + else if(subStringValues.get(i).intValue()>subStringValues.get(i+1).intValue()){ if(subStringValues.get(i+1) Date: Thu, 6 Oct 2016 15:52:32 +0300 Subject: [PATCH 123/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 3ea7f86..c0367f7 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -171,3 +171,6 @@ EditAction 1475758239587 RomanNumerals.java 3167 1 7 0 UnitTestCaseAction 1475758240790 TestRomanNumerals.java FAIL UnitTestSessionAction 1475758240791 TestRomanNumerals.java FAIL EditAction 1475758282860 RomanNumerals.java 3189 1 7 0 +UnitTestCaseAction 1475758284658 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475758284659 TestRomanNumerals.java FAIL +EditAction 1475758352335 RomanNumerals.java 3269 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 7a9adb2..778c28e 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -44,10 +44,12 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ for(String s: subStrings) { switch(s) { case "I": subStringValues.add(1); + System.out.println(subStringValues.toString()); break; case "V": subStringValues.add(5); break; case "X": subStringValues.add(10); + System.out.println(subStringValues.toString()); break; case "L": subStringValues.add(50); break; @@ -83,7 +85,7 @@ else if(subStringValues.get(i)subStringValues.get(i+1).intValue()){ + else if(subStringValues.get(i)>subStringValues.get(i+1)){ if(subStringValues.get(i+1) Date: Thu, 6 Oct 2016 15:53:41 +0300 Subject: [PATCH 124/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index c0367f7..dfbd342 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -174,3 +174,6 @@ EditAction 1475758282860 RomanNumerals.java 3189 1 7 0 UnitTestCaseAction 1475758284658 TestRomanNumerals.java FAIL UnitTestSessionAction 1475758284659 TestRomanNumerals.java FAIL EditAction 1475758352335 RomanNumerals.java 3269 1 7 0 +UnitTestCaseAction 1475758354149 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475758354150 TestRomanNumerals.java FAIL +EditAction 1475758421159 RomanNumerals.java 3343 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 778c28e..2340e3e 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -68,7 +68,7 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ int sum = 0; int size = subStringValues.size(); for(int i = 0;i 2) { + if(size-i > 2 && subStringValues.get(i).intValue()==subStringValues.get(i+1).intValue()) { if(subStringValues.get(i).intValue()==subStringValues.get(i+1).intValue() && subStringValues.get(i).intValue()==subStringValues.get(i+2).intValue()) { sum += subStringValues.get(i).intValue() + subStringValues.get(i+1).intValue() + subStringValues.get(i+2).intValue(); i++; From 55ed9f5c20da6ae4180f3d14bf269833fcad2fc1 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 6 Oct 2016 15:53:54 +0300 Subject: [PATCH 125/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ .besouro/20161006142833483/besouroEpisodes.txt | 2 ++ .besouro/20161006142833483/randomHeuristicEpisodes.txt | 1 + .besouro/20161006142833483/zorroEpisodes.txt | 1 + src/RomanNumerals.java | 2 -- 5 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index dfbd342..66b4e35 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -177,3 +177,6 @@ EditAction 1475758352335 RomanNumerals.java 3269 1 7 0 UnitTestCaseAction 1475758354149 TestRomanNumerals.java FAIL UnitTestSessionAction 1475758354150 TestRomanNumerals.java FAIL EditAction 1475758421159 RomanNumerals.java 3343 1 7 0 +UnitTestCaseAction 1475758423108 TestRomanNumerals.java OK +UnitTestSessionAction 1475758423108 TestRomanNumerals.java OK +EditAction 1475758434260 RomanNumerals.java 3241 1 7 0 diff --git a/.besouro/20161006142833483/besouroEpisodes.txt b/.besouro/20161006142833483/besouroEpisodes.txt index 667a928..11588d3 100644 --- a/.besouro/20161006142833483/besouroEpisodes.txt +++ b/.besouro/20161006142833483/besouroEpisodes.txt @@ -40,3 +40,5 @@ 1475755691342 refactoring 2A 57 true 1475756982946 refactoring 2A 1168 true 1475756982947 production 1 1168 false +1475758423108 refactoring 2A 1415 true +1475758423109 production 1 1415 false diff --git a/.besouro/20161006142833483/randomHeuristicEpisodes.txt b/.besouro/20161006142833483/randomHeuristicEpisodes.txt index 20b2eda..fc5def0 100644 --- a/.besouro/20161006142833483/randomHeuristicEpisodes.txt +++ b/.besouro/20161006142833483/randomHeuristicEpisodes.txt @@ -7,3 +7,4 @@ 1475755621087 test-first 3 189 true 1475755691342 refactoring 2A 57 true 1475756982946 refactoring 2A 1168 true +1475758423108 refactoring 2A 1415 false diff --git a/.besouro/20161006142833483/zorroEpisodes.txt b/.besouro/20161006142833483/zorroEpisodes.txt index e4e9994..bf94ac9 100644 --- a/.besouro/20161006142833483/zorroEpisodes.txt +++ b/.besouro/20161006142833483/zorroEpisodes.txt @@ -7,3 +7,4 @@ 1475755621087 test-first 3 295 true 1475755691342 refactoring 2A 70 true 1475756982946 refactoring 2A 1291 true +1475758423108 refactoring 2A 1440 true diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 2340e3e..123353f 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -44,12 +44,10 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ for(String s: subStrings) { switch(s) { case "I": subStringValues.add(1); - System.out.println(subStringValues.toString()); break; case "V": subStringValues.add(5); break; case "X": subStringValues.add(10); - System.out.println(subStringValues.toString()); break; case "L": subStringValues.add(50); break; From e39440ebce5bf9d399307ed9467ac48f1b570475 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 6 Oct 2016 15:54:05 +0300 Subject: [PATCH 126/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ .besouro/20161006142833483/besouroEpisodes.txt | 1 + .besouro/20161006142833483/randomHeuristicEpisodes.txt | 1 + .besouro/20161006142833483/zorroEpisodes.txt | 1 + src/RomanNumerals.java | 1 - 5 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 66b4e35..5b8d153 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -180,3 +180,6 @@ EditAction 1475758421159 RomanNumerals.java 3343 1 7 0 UnitTestCaseAction 1475758423108 TestRomanNumerals.java OK UnitTestSessionAction 1475758423108 TestRomanNumerals.java OK EditAction 1475758434260 RomanNumerals.java 3241 1 7 0 +UnitTestCaseAction 1475758435690 TestRomanNumerals.java OK +UnitTestSessionAction 1475758435690 TestRomanNumerals.java OK +EditAction 1475758445118 RomanNumerals.java 3208 1 7 0 diff --git a/.besouro/20161006142833483/besouroEpisodes.txt b/.besouro/20161006142833483/besouroEpisodes.txt index 11588d3..aea67bc 100644 --- a/.besouro/20161006142833483/besouroEpisodes.txt +++ b/.besouro/20161006142833483/besouroEpisodes.txt @@ -42,3 +42,4 @@ 1475756982947 production 1 1168 false 1475758423108 refactoring 2A 1415 true 1475758423109 production 1 1415 false +1475758435690 refactoring 2A 1 true diff --git a/.besouro/20161006142833483/randomHeuristicEpisodes.txt b/.besouro/20161006142833483/randomHeuristicEpisodes.txt index fc5def0..e049b8d 100644 --- a/.besouro/20161006142833483/randomHeuristicEpisodes.txt +++ b/.besouro/20161006142833483/randomHeuristicEpisodes.txt @@ -8,3 +8,4 @@ 1475755691342 refactoring 2A 57 true 1475756982946 refactoring 2A 1168 true 1475758423108 refactoring 2A 1415 false +1475758435690 refactoring 2A 1 true diff --git a/.besouro/20161006142833483/zorroEpisodes.txt b/.besouro/20161006142833483/zorroEpisodes.txt index bf94ac9..8ecccc4 100644 --- a/.besouro/20161006142833483/zorroEpisodes.txt +++ b/.besouro/20161006142833483/zorroEpisodes.txt @@ -8,3 +8,4 @@ 1475755691342 refactoring 2A 70 true 1475756982946 refactoring 2A 1291 true 1475758423108 refactoring 2A 1440 true +1475758435690 refactoring 2A 12 true diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 123353f..33a63d2 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -86,7 +86,6 @@ else if(subStringValues.get(i)subStringValues.get(i+1)){ if(subStringValues.get(i+1) Date: Thu, 6 Oct 2016 15:54:44 +0300 Subject: [PATCH 127/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 6 ++++++ .besouro/20161006142833483/besouroEpisodes.txt | 1 + .../20161006142833483/randomHeuristicEpisodes.txt | 1 + .besouro/20161006142833483/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 13 +++++++++++++ 5 files changed, 22 insertions(+) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 5b8d153..5b25ef6 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -183,3 +183,9 @@ EditAction 1475758434260 RomanNumerals.java 3241 1 7 0 UnitTestCaseAction 1475758435690 TestRomanNumerals.java OK UnitTestSessionAction 1475758435690 TestRomanNumerals.java OK EditAction 1475758445118 RomanNumerals.java 3208 1 7 0 +UnitTestCaseAction 1475758448278 TestRomanNumerals.java OK +UnitTestSessionAction 1475758448278 TestRomanNumerals.java OK +RefactoringAction 1475758460219 TestRomanNumerals.java ADD void testConvertingVX()/2 METHOD +RefactoringAction 1475758474735 TestRomanNumerals.java RENAME testConvertingVX()/2=>void testConvertingL()/2 METHOD +RefactoringAction 1475758479253 TestRomanNumerals.java RENAME testConvertingL()/2=>void testConvertingLC() METHOD +EditAction 1475758484409 TestRomanNumerals.java 5067 22 62 9 diff --git a/.besouro/20161006142833483/besouroEpisodes.txt b/.besouro/20161006142833483/besouroEpisodes.txt index aea67bc..112d729 100644 --- a/.besouro/20161006142833483/besouroEpisodes.txt +++ b/.besouro/20161006142833483/besouroEpisodes.txt @@ -43,3 +43,4 @@ 1475758423108 refactoring 2A 1415 true 1475758423109 production 1 1415 false 1475758435690 refactoring 2A 1 true +1475758448278 refactoring 2A 3 true diff --git a/.besouro/20161006142833483/randomHeuristicEpisodes.txt b/.besouro/20161006142833483/randomHeuristicEpisodes.txt index e049b8d..4bb1435 100644 --- a/.besouro/20161006142833483/randomHeuristicEpisodes.txt +++ b/.besouro/20161006142833483/randomHeuristicEpisodes.txt @@ -9,3 +9,4 @@ 1475756982946 refactoring 2A 1168 true 1475758423108 refactoring 2A 1415 false 1475758435690 refactoring 2A 1 true +1475758448278 refactoring 2A 3 true diff --git a/.besouro/20161006142833483/zorroEpisodes.txt b/.besouro/20161006142833483/zorroEpisodes.txt index 8ecccc4..1b443de 100644 --- a/.besouro/20161006142833483/zorroEpisodes.txt +++ b/.besouro/20161006142833483/zorroEpisodes.txt @@ -9,3 +9,4 @@ 1475756982946 refactoring 2A 1291 true 1475758423108 refactoring 2A 1440 true 1475758435690 refactoring 2A 12 true +1475758448278 refactoring 2A 12 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index f574aa2..45238d3 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -253,4 +253,17 @@ public void testConvertingVX() { assertEquals(true, thrown); } + @Test + public void testConvertingLC() { + RomanNumerals rn = new RomanNumerals(); + boolean thrown = false; + try { + rn.convertToInteger("LC"); + } + catch(RomanNumeralsException e) { + thrown = true; + } + assertEquals(true, thrown); + } + } From ec483d1b79be5d2710e5491b2293e2455d85b7c6 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 6 Oct 2016 15:55:14 +0300 Subject: [PATCH 128/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ src/RomanNumerals.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 5b25ef6..1c2f845 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -189,3 +189,6 @@ RefactoringAction 1475758460219 TestRomanNumerals.java ADD void testConvertingVX RefactoringAction 1475758474735 TestRomanNumerals.java RENAME testConvertingVX()/2=>void testConvertingL()/2 METHOD RefactoringAction 1475758479253 TestRomanNumerals.java RENAME testConvertingL()/2=>void testConvertingLC() METHOD EditAction 1475758484409 TestRomanNumerals.java 5067 22 62 9 +UnitTestCaseAction 1475758485848 TestRomanNumerals.java FAIL +UnitTestSessionAction 1475758485848 TestRomanNumerals.java FAIL +EditAction 1475758514875 RomanNumerals.java 3238 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 33a63d2..e874f62 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -78,7 +78,7 @@ else if(subStringValues.get(i).intValue()==subStringValues.get(i+1).intValue()) i++; } else if(subStringValues.get(i) Date: Thu, 6 Oct 2016 15:55:44 +0300 Subject: [PATCH 129/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 5 +++++ .besouro/20161006142833483/besouroEpisodes.txt | 2 ++ .../20161006142833483/randomHeuristicEpisodes.txt | 1 + .besouro/20161006142833483/zorroEpisodes.txt | 1 + tests/TestRomanNumerals.java | 13 +++++++++++++ 5 files changed, 22 insertions(+) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index 1c2f845..b4183c4 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -192,3 +192,8 @@ EditAction 1475758484409 TestRomanNumerals.java 5067 22 62 9 UnitTestCaseAction 1475758485848 TestRomanNumerals.java FAIL UnitTestSessionAction 1475758485848 TestRomanNumerals.java FAIL EditAction 1475758514875 RomanNumerals.java 3238 1 7 0 +UnitTestCaseAction 1475758517994 TestRomanNumerals.java OK +UnitTestSessionAction 1475758517994 TestRomanNumerals.java OK +RefactoringAction 1475758525803 TestRomanNumerals.java ADD void testConvertingLC()/2 METHOD +RefactoringAction 1475758529821 TestRomanNumerals.java RENAME testConvertingLC()/2=>void testConvertingDM() METHOD +EditAction 1475758544567 TestRomanNumerals.java 5311 23 66 10 diff --git a/.besouro/20161006142833483/besouroEpisodes.txt b/.besouro/20161006142833483/besouroEpisodes.txt index 112d729..2821bf7 100644 --- a/.besouro/20161006142833483/besouroEpisodes.txt +++ b/.besouro/20161006142833483/besouroEpisodes.txt @@ -44,3 +44,5 @@ 1475758423109 production 1 1415 false 1475758435690 refactoring 2A 1 true 1475758448278 refactoring 2A 3 true +1475758517994 test-first 3 57 true +1475758517995 test-first 3 57 true diff --git a/.besouro/20161006142833483/randomHeuristicEpisodes.txt b/.besouro/20161006142833483/randomHeuristicEpisodes.txt index 4bb1435..96ab619 100644 --- a/.besouro/20161006142833483/randomHeuristicEpisodes.txt +++ b/.besouro/20161006142833483/randomHeuristicEpisodes.txt @@ -10,3 +10,4 @@ 1475758423108 refactoring 2A 1415 false 1475758435690 refactoring 2A 1 true 1475758448278 refactoring 2A 3 true +1475758517994 test-first 3 57 true diff --git a/.besouro/20161006142833483/zorroEpisodes.txt b/.besouro/20161006142833483/zorroEpisodes.txt index 1b443de..191f77b 100644 --- a/.besouro/20161006142833483/zorroEpisodes.txt +++ b/.besouro/20161006142833483/zorroEpisodes.txt @@ -10,3 +10,4 @@ 1475758423108 refactoring 2A 1440 true 1475758435690 refactoring 2A 12 true 1475758448278 refactoring 2A 12 true +1475758517994 test-first 3 69 true diff --git a/tests/TestRomanNumerals.java b/tests/TestRomanNumerals.java index 45238d3..83318e4 100644 --- a/tests/TestRomanNumerals.java +++ b/tests/TestRomanNumerals.java @@ -266,4 +266,17 @@ public void testConvertingLC() { assertEquals(true, thrown); } + @Test + public void testConvertingDM() { + RomanNumerals rn = new RomanNumerals(); + boolean thrown = false; + try { + rn.convertToInteger("DM"); + } + catch(RomanNumeralsException e) { + thrown = true; + } + assertEquals(true, thrown); + } + } From 43e5dbef5afc5671233dec57713e81b0a3fa6e60 Mon Sep 17 00:00:00 2001 From: somename Date: Thu, 6 Oct 2016 15:55:58 +0300 Subject: [PATCH 130/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 1 + src/RomanNumerals.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index b4183c4..f09d39b 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -197,3 +197,4 @@ UnitTestSessionAction 1475758517994 TestRomanNumerals.java OK RefactoringAction 1475758525803 TestRomanNumerals.java ADD void testConvertingLC()/2 METHOD RefactoringAction 1475758529821 TestRomanNumerals.java RENAME testConvertingLC()/2=>void testConvertingDM() METHOD EditAction 1475758544567 TestRomanNumerals.java 5311 23 66 10 +EditAction 1475758558530 RomanNumerals.java 3269 1 7 0 diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index e874f62..7c5503f 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -78,7 +78,7 @@ else if(subStringValues.get(i).intValue()==subStringValues.get(i+1).intValue()) i++; } else if(subStringValues.get(i) Date: Thu, 6 Oct 2016 15:56:10 +0300 Subject: [PATCH 131/131] besouro automatic message --- .besouro/20161006142833483/actions.txt | 3 +++ .besouro/20161006142833483/besouroEpisodes.txt | 2 ++ .besouro/20161006142833483/randomHeuristicEpisodes.txt | 1 + .besouro/20161006142833483/zorroEpisodes.txt | 1 + src/RomanNumerals.java | 2 +- 5 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.besouro/20161006142833483/actions.txt b/.besouro/20161006142833483/actions.txt index f09d39b..9145c46 100644 --- a/.besouro/20161006142833483/actions.txt +++ b/.besouro/20161006142833483/actions.txt @@ -198,3 +198,6 @@ RefactoringAction 1475758525803 TestRomanNumerals.java ADD void testConvertingLC RefactoringAction 1475758529821 TestRomanNumerals.java RENAME testConvertingLC()/2=>void testConvertingDM() METHOD EditAction 1475758544567 TestRomanNumerals.java 5311 23 66 10 EditAction 1475758558530 RomanNumerals.java 3269 1 7 0 +UnitTestCaseAction 1475758560535 TestRomanNumerals.java OK +UnitTestSessionAction 1475758560535 TestRomanNumerals.java OK +EditAction 1475758570160 RomanNumerals.java 3271 1 6 0 diff --git a/.besouro/20161006142833483/besouroEpisodes.txt b/.besouro/20161006142833483/besouroEpisodes.txt index 2821bf7..d988a87 100644 --- a/.besouro/20161006142833483/besouroEpisodes.txt +++ b/.besouro/20161006142833483/besouroEpisodes.txt @@ -46,3 +46,5 @@ 1475758448278 refactoring 2A 3 true 1475758517994 test-first 3 57 true 1475758517995 test-first 3 57 true +1475758560535 test-first 4 34 true +1475758560536 test-first 4 34 true diff --git a/.besouro/20161006142833483/randomHeuristicEpisodes.txt b/.besouro/20161006142833483/randomHeuristicEpisodes.txt index 96ab619..cbcd4e7 100644 --- a/.besouro/20161006142833483/randomHeuristicEpisodes.txt +++ b/.besouro/20161006142833483/randomHeuristicEpisodes.txt @@ -11,3 +11,4 @@ 1475758435690 refactoring 2A 1 true 1475758448278 refactoring 2A 3 true 1475758517994 test-first 3 57 true +1475758560535 test-first 4 34 true diff --git a/.besouro/20161006142833483/zorroEpisodes.txt b/.besouro/20161006142833483/zorroEpisodes.txt index 191f77b..08e5692 100644 --- a/.besouro/20161006142833483/zorroEpisodes.txt +++ b/.besouro/20161006142833483/zorroEpisodes.txt @@ -11,3 +11,4 @@ 1475758435690 refactoring 2A 12 true 1475758448278 refactoring 2A 12 true 1475758517994 test-first 3 69 true +1475758560535 test-first 4 42 true diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java index 7c5503f..aaef15d 100644 --- a/src/RomanNumerals.java +++ b/src/RomanNumerals.java @@ -39,7 +39,7 @@ public int convertToInteger(String romanNum) throws RomanNumeralsException{ c += counter-1; counter = 1; } - System.out.println(subStrings.toString()); + //System.out.println(subStrings.toString()); for(String s: subStrings) { switch(s) {