Skip to content

Commit

Permalink
Formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
srimanachanta committed Nov 20, 2023
1 parent 6ec60a7 commit ce3966c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ public void protobufListTest() {
new TargetCorner(3, 4),
new TargetCorner(5, 6),
new TargetCorner(7, 8))));
serializedTargets =
RepeatedMessage.newEmptyInstance(ProtobufPhotonTrackedTarget.getFactory());
serializedTargets = RepeatedMessage.newEmptyInstance(ProtobufPhotonTrackedTarget.getFactory());
PhotonTrackedTarget.proto.pack(serializedTargets, targets);
unpackedTargets = PhotonTrackedTarget.proto.unpack(serializedTargets);
assertEquals(targets, unpackedTargets);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,13 @@ public void protobufTest() {
@Test
public void protobufListTest() {
List<TargetCorner> corners = List.of();
var serializedCorners =
RepeatedMessage.newEmptyInstance(ProtobufTargetCorner.getFactory());
var serializedCorners = RepeatedMessage.newEmptyInstance(ProtobufTargetCorner.getFactory());
TargetCorner.proto.pack(serializedCorners, corners);
var unpackedCorners = TargetCorner.proto.unpack(serializedCorners);
assertEquals(corners, unpackedCorners);

corners = List.of(new TargetCorner(0, 1), new TargetCorner(1, 2));
serializedCorners =
RepeatedMessage.newEmptyInstance(ProtobufTargetCorner.getFactory());
serializedCorners = RepeatedMessage.newEmptyInstance(ProtobufTargetCorner.getFactory());
TargetCorner.proto.pack(serializedCorners, corners);
unpackedCorners = TargetCorner.proto.unpack(serializedCorners);
assertEquals(corners, unpackedCorners);
Expand Down

0 comments on commit ce3966c

Please sign in to comment.