()
| 505 | } |
| 506 | |
| 507 | @Test |
| 508 | public void format1() { |
| 509 | MachineTime.Formatter f = |
| 510 | MachineTime.Formatter.ofPattern("+hh:mm:ss"); |
| 511 | String s1 = f.format(MachineTime.of(99005, TimeUnit.SECONDS)); |
| 512 | assertThat(s1, is("+27:30:05")); |
| 513 | String s2 = f.format(MachineTime.of(-99005, TimeUnit.SECONDS)); |
| 514 | assertThat(s2, is("-27:30:05")); |
| 515 | } |
| 516 | |
| 517 | @Test |
| 518 | public void format2() { |