Skip to content

Commit

Permalink
chore(tests): fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
powercasgamer committed Oct 19, 2023
1 parent 0055e72 commit 61890a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/src/test/java/net/kyori/adventure/util/HSVLikeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import net.kyori.adventure.text.format.TextColor;
import org.jspecify.annotations.NullMarked;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
import static org.junit.jupiter.api.Assertions.assertEquals;
Expand Down Expand Up @@ -59,7 +60,7 @@ private static void assertRgbToHsvConversionRoughlyMatchesJavaAwtColor(final RGB
);
}

private static float[] roundFloats(final float [] floats) {
private static float[] roundFloats(final float[] floats) {
final float[] result = new float[floats.length];
for (int i = 0; i < floats.length; i++) {
result[i] = BigDecimal.valueOf(floats[i]).setScale(7, RoundingMode.UP).floatValue();
Expand Down

0 comments on commit 61890a0

Please sign in to comment.