Repository navigation
series: change return type of 'slices' method #1598 - #1599
Conversation
FridaTveit
left a comment
There was a problem hiding this comment.
Looks great @hgvanpariya! 🙂 I've added a few comments, let me know if you have any questions 🙂
| Series series = new Series("35"); | ||
| List<List<String>> expected = Arrays.asList(Arrays.asList("3", "5")); | ||
| List<List<String>> actual = series.slices(2); | ||
| List<String> expected = Arrays.asList("3", "5"); |
There was a problem hiding this comment.
I think this should be "35" which is why the build is failing 🙂
| ); | ||
| List<List<String>> actual = series.slices(3); | ||
| List<String> actual = series.slices(3); | ||
| assertEquals(expected, actual); |
There was a problem hiding this comment.
The two lines above appear to be indented four spaces too much? 🙂
| expectedException.expectMessage("Slice size is too big."); | ||
| Series series = new Series(""); | ||
| List<List<String>> slices = series.slices(1); | ||
| List<String> slices = series.slices(1); |
There was a problem hiding this comment.
You don't need to store the slices in a variable since you're not using it 🙂
| Series series = new Series("1"); | ||
| List<List<String>> expected = Arrays.asList(Arrays.asList("1")); | ||
| List<List<String>> actual = series.slices(1); | ||
| List<String> expected = Arrays.asList("1"); |
There was a problem hiding this comment.
This could use Collections.singletonList 🙂
| Arrays.asList("2") | ||
| ); | ||
| List<List<String>> actual = series.slices(1); | ||
| List<String> expected = Arrays.asList("1","2"); |
There was a problem hiding this comment.
Please add a space after the comma 🙂
ba4ae8f to
191abdf
Compare
191abdf to
daa0328
Compare
|
@FridaTveit : I fixed the issues reported ... please let me know any further changes are needed ... |
FridaTveit
left a comment
There was a problem hiding this comment.
Looks great, thanks @hgvanpariya! 😄
Reviewer Resources:
Track Policies