Repository navigation
Create BeatTable #238 #239 #240 - #291
Conversation
|
The beat table is supposed to contain pairs. See https://github.com/andrewcmyers/civs/blob/master/cgi-bin/beatpath2.pm |
magwas
left a comment
There was a problem hiding this comment.
At least some of the code duplication findings, none of the linguistic antipattern and all other findings by sonar seem to be legit. Of course do not comment, but fix scope.
|
there are still legit sonar findings. |
|
@magwas As I see there are some duplicated codes in sonar but I cannot eliminate it in a nice way. |
|
There are actual code duplications using. Also you use the exact same code to test different things in setPair and getPair test, which means that some of the tests are redundant. Please note that there are other problems, for example the complexity of BeatTable. |
|
@magwas Could you run the sonar to not whine about the public entites? |
| @TestedBehaviour("Unimplemented") | ||
| @Test | ||
| public void compareBeats_is_not_yet_implemented_when_the_result_is_tie() { | ||
| assertThrows(() -> beatTable.compareBeats(beats1, beats1) |
There was a problem hiding this comment.
as I see there is no such a method like assertUnimplemented yet.
There was a problem hiding this comment.
Ok I think I created that method I hope you will like it. :)
|
testcaseCount=10 |
Fix #238 #239 #240