Skip to content

Commit 67d73e8

Browse files
committed
adding unit tests for SimpleValueFormat
1 parent 24004b5 commit 67d73e8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

epics-vtype/vtype/src/test/java/org/epics/vtype/SimpleValueFormatTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public void defaultPrecision() {
6060
public void testMandatedPrecision() {
6161
ValueFormat f = new SimpleValueFormat(3);
6262
f.setNumberFormat(NumberFormats.precisionFormat(2));
63+
Display display = Display.of(maxDoubleRange, maxDoubleRange, maxDoubleRange, maxDoubleRange, "", f.getNumberFormat());
6364
assertThat(f.format(VDouble.of(1234.5678, Alarm.none(), Time.now(), display)), equalTo("1234.57"));
6465
assertThat(f.format(VIntArray.of(ArrayInteger.of(1, 2, 3), Alarm.none(), Time.now(), displayInt)), equalTo("[1.00, 2.00, 3.00]"));
6566
assertThat(f.format(VIntArray.of(ArrayInteger.of(1), Alarm.none(), Time.now(), displayInt)), equalTo("[1.00]"));

0 commit comments

Comments
 (0)