void () { final List<FormatStringChunk> chunks = parseNewStyleFormat("{:.2}"); TestCase.assertEquals(1, chunks.size()); assertEquals(TextRange.create(0, 5), chunks.get(0).getTextRange()); assertEquals("2", ((NewStyleSubstitutionChunk)chunks.get(0)).getPrecision()); }