Corrected test and Put card.
1 package ru.alphatech.icfpc.cards.tests;
3 import junit.framework.TestCase;
7 import ru.alphatech.icfpc.cards.I;
8 import ru.alphatech.icfpc.cards.Succ;
9 import ru.alphatech.icfpc.game.ICFPCException;
10 import ru.alphatech.icfpc.game.IValue;
11 import ru.alphatech.icfpc.game.Player;
12 import ru.alphatech.icfpc.game.Value;
14 public class TestSucc extends TestCase
17 public void testEqualValue()
19 Player opponent = new Player();
20 Player proponent = new Player();
22 assertEquals(65535, ((Value)new Succ().returnValue(new Value(65535), proponent, opponent)).getValue());
26 public void testBiggestValue()
28 Player opponent = new Player();
29 Player proponent = new Player();
31 assertEquals(65535, ((Value)new Succ().returnValue(new Value(65535), proponent, opponent)).getValue());
35 public void testValue()
37 Player opponent = new Player();
38 Player proponent = new Player();
40 assertEquals(11, ((Value)new Succ().returnValue(new Value(10), proponent, opponent)).getValue());
44 public void testErrorValue()
46 Player opponent = new Player();
47 Player proponent = new Player();
52 new Succ().returnValue(i, proponent, opponent);
55 catch (ICFPCException e)