示例#1
0
文件: Basics.java 项目: nuzil/101repo
 @Test
 public void testCut() {
   Total total = new Total();
   Cut cut = new Cut();
   double before = total.reduce(sampleCompany);
   cut.walk(sampleCompany);
   double after = total.reduce(sampleCompany);
   assertEquals(before / 2.0d, after, 0);
 }
示例#2
0
文件: Basics.java 项目: nuzil/101repo
 @Test
 public void testTotal() {
   Total total = new Total();
   assertEquals(399747, total.reduce(sampleCompany), 0);
 }