1 package ru.alphatech.icfpc.cards.tests;
3 import junit.framework.Assert;
7 import ru.alphatech.icfpc.cards.Dbl;
8 import ru.alphatech.icfpc.cards.I;
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 TestDbl extends Assert
17 public void testEqualValue()
19 Player opponent = new Player();
20 Player proponent = new Player();
21 assertEquals(65535, ((Value)new Dbl().returnValue(new Value(32768), proponent, opponent)).getValue());
24 public void testBiggestValue()
26 Player opponent = new Player();
27 Player proponent = new Player();
29 assertEquals(65535, ((Value)new Dbl().returnValue(new Value(35000), proponent, opponent)).getValue());
32 public void testValue()
34 Player opponent = new Player();
35 Player proponent = new Player();
37 assertEquals(22, ((Value)new Dbl().returnValue(new Value(11), proponent, opponent)).getValue());
40 public void testErrorValue()
42 Player opponent = new Player();
43 Player proponent = new Player();
47 new Dbl().returnValue(i, proponent, opponent);
50 catch (ICFPCException e)