Skip to content

Commit 00a5fdc

Browse files
committed
Add test for Ordering#reverse
1 parent 9fa7b49 commit 00a5fdc

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package fj;
2+
3+
import org.hamcrest.Matcher;
4+
import org.hamcrest.core.Is;
5+
import org.junit.Test;
6+
7+
import static fj.Ordering.EQ;
8+
import static fj.Ordering.GT;
9+
import static fj.Ordering.LT;
10+
import static org.hamcrest.core.Is.is;
11+
import static org.junit.Assert.*;
12+
13+
public class OrderingTest {
14+
15+
@Test
16+
public void reverse() throws Exception {
17+
assertThat(GT.reverse(), is(LT));
18+
assertThat(LT.reverse(), is(GT));
19+
assertThat(EQ.reverse(), is(EQ));
20+
}
21+
}

0 commit comments

Comments
 (0)