-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(algorithm): record loop is not copied #276
Conversation
Codecov Report
@@ Coverage Diff @@
## master #276 +/- ##
============================================
- Coverage 85.10% 85.09% -0.02%
- Complexity 3245 3246 +1
============================================
Files 345 345
Lines 12283 12283
Branches 1101 1101
============================================
- Hits 10454 10452 -2
- Misses 1303 1304 +1
- Partials 526 527 +1
... and 4 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -124,6 +125,10 @@ private void assertResult(Id id, List<String> rings) { | |||
Set<String> expect = EXPECT_RINGS.getOrDefault(id.toString(), | |||
new HashSet<>()); | |||
|
|||
rings = rings.stream() | |||
.distinct() | |||
.collect(Collectors.toList()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems don't need to distinct since the rings is a Set
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -124,6 +125,10 @@ private void assertResult(Id id, List<String> rings) { | |||
Set<String> expect = EXPECT_RINGS.getOrDefault(id.toString(), | |||
new HashSet<>()); | |||
|
|||
rings = rings.stream() | |||
.distinct() | |||
.collect(Collectors.toList()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry
Purpose of the PR
Main Changes
The result is not copied when the loop is detected.
Verifying these changes
Does this PR potentially affect the following parts?
Documentation Status
Doc - TODO
Doc - Done
Doc - No Need