Skip to content

Commit 5d7c477

Browse files
committed
[test] Simplified assertions in type slope test
1 parent 01097c5 commit 5d7c477

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tehreer-android/src/test/java/com/mta/tehreer/graphics/TypeSlopeTest.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,13 @@
1818

1919
import org.junit.Test;
2020

21-
import static org.hamcrest.core.Is.is;
22-
import static org.junit.Assert.assertThat;
21+
import static org.junit.Assert.assertEquals;
2322

2423
public class TypeSlopeTest {
25-
2624
@Test
2725
public void testOrdinals() {
28-
assertThat(TypeSlope.PLAIN.ordinal(), is(0));
29-
assertThat(TypeSlope.ITALIC.ordinal(), is(1));
30-
assertThat(TypeSlope.OBLIQUE.ordinal(), is(2));
26+
assertEquals(TypeSlope.PLAIN.ordinal(), 0);
27+
assertEquals(TypeSlope.ITALIC.ordinal(), 1);
28+
assertEquals(TypeSlope.OBLIQUE.ordinal(), 2);
3129
}
3230
}

0 commit comments

Comments
 (0)