@Test public void testFasterThan() { Result r1 = is(faster).fasterThan(slower); assertEquals(1.5, r1.asMultiplicator(), 0.0); assertEquals(50, r1.inPercent()); Result r2 = is(slower).fasterThan(faster); assertEquals(0.6666666666666666, r2.asMultiplicator(), 0.0); assertEquals(-33, r2.inPercent()); }
public static SpeedComparator is(Speed reference) { return new SpeedComparator(reference); }
Speeds { public static SpeedComparator is(Speed reference) { return new SpeedComparator(reference); } }
Speeds { public static SpeedComparator is(Speed reference) { return new SpeedComparator(reference); } private  Speeds(); }
Speeds { public static SpeedComparator is(Speed reference) { return new SpeedComparator(reference); } private  Speeds(); static SpeedComparator is(Speed reference); }
Speeds { public static SpeedComparator is(Speed reference) { return new SpeedComparator(reference); } private  Speeds(); static SpeedComparator is(Speed reference);  }