()
| 515 | } |
| 516 | |
| 517 | @Test |
| 518 | public void format2() { |
| 519 | MachineTime.Formatter f = |
| 520 | MachineTime.Formatter.ofPattern("+D:hh:mm:ss"); |
| 521 | String s1 = f.format(MachineTime.of(99005, TimeUnit.SECONDS)); |
| 522 | assertThat(s1, is("+1:03:30:05")); |
| 523 | String s2 = f.format(MachineTime.of(-99005, TimeUnit.SECONDS)); |
| 524 | assertThat(s2, is("-1:03:30:05")); |
| 525 | } |
| 526 | |
| 527 | @Test |
| 528 | public void format3() { |