Skip to content

Commit

Permalink
Increase test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
KingOfSquares committed Nov 8, 2021
1 parent f386ea4 commit 456c9c8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
*/
package net.kyori.adventure.text.format;

import java.util.Arrays;
import net.kyori.adventure.util.TriState;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;

Expand All @@ -44,5 +46,6 @@ void testByTristate() {
assertEquals(TextDecoration.State.TRUE, TextDecoration.State.byTriState(TriState.TRUE));

assertThrows(NullPointerException.class, () -> TextDecoration.State.byTriState(null));
assertDoesNotThrow(() -> Arrays.stream(TriState.values()).forEach(TextDecoration.State::byTriState));
}
}

0 comments on commit 456c9c8

Please sign in to comment.