forked from avilanicolas/Crazy8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCardTest.java
50 lines (41 loc) · 892 Bytes
/
CardTest.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package Crazy8;
/**
* @author Nicolas Avila
* @version 1.0
*/
public class CardTest extends junit.framework.TestCase
{
/**
* Default constructor for test class CardTest
*/
public CardTest()
{
}
/**
* Sets up the test fixture.
*
* Called before every test case method.
*/
protected void setUp()
{
}
/**
* Tears down the test fixture.
*
* Called after every test case method.
*/
protected void tearDown()
{
}
public void testCardTest1()
{
Crazy8.Card card1 = new Crazy8.Card(14, "club");
System.out.println(card1);
Crazy8.Card card2 = new Crazy8.Card(10, "club");
System.out.println(card2);
Crazy8.Card card3 = new Crazy8.Card(2, "diamond");
System.out.println(card3);
assertEquals(1, card1.compareTo(card2));
assertEquals(-1, card1.compareTo(card3));
}
}