Beispiel #1
0
 // restToStringTest(): integer duration, decimal duration
 @Test
 public void restToStringTest() {
   Rest a = new Rest(5);
   Rest b = new Rest(4.5);
   assertEquals(".5.0", a.toString());
   assertEquals(".4.5", b.toString());
 }
Beispiel #2
0
 // restConstructorTest()
 @Test
 public void restConstructorTest() {
   Rest a = new Rest(5);
   assertEquals(".5.0", a.toString());
 }