8297091: New langtools test jdk/javadoc/doclet/testValueTag/TestValueFormats.java fails on machines with unexpected number format

Reviewed-by: prappo, jjg
This commit is contained in:
Christoph Langer 2022-11-22 21:00:08 +00:00
parent b6dddf4ce6
commit 4a544bb0fc

View File

@ -86,7 +86,7 @@ public class TestValueFormats extends JavadocTester {
"""
<h3>pi</h3>
<div class="member-signature"><span class="modifiers">public static final</span>&nbsp;<span class="return-type">double</span>&nbsp;<span class="element-name">pi</span></div>
<div class="block">The value 3.1415926525 is 3.14.</div>""");
<div class="block">The value 3.1415926525 is %5.2f.</div>""".formatted(3.14));
}
@Test