示例#1
0
 @Test
 public void shouldCalculateAnd() {
   assertEquals(new Chance(0.08f), chance.and(new Chance(0.4f)));
 }
示例#2
0
 @Test
 public void shouldCalculateOr() {
   assertEquals(new Chance(0.52f), chance.or(new Chance(0.4f)));
 }
示例#3
0
 @Test
 public void shouldCheckForComplement() {
   assertEquals(new Chance(0.8f), chance.not());
 }