@Test
public void testParseInPlacePrecisionAndFloatSuffix() throws Exception {

  final String shader = "#version 310 es\n"
      + "\n"
      + "void main() {\n"
      + "    mediump vec3 color = 1.00f;\n"
      + "}\n";
  final TranslationUnit tu = ParseHelper.parse(shader);
  final VariablesDeclaration variablesDeclaration =
      ((DeclarationStmt) ((FunctionDefinition) tu.getTopLevelDeclarations().get(0)).getBody()
      .getStmt(0)).getVariablesDeclaration();
  final Type baseType =
      variablesDeclaration.getBaseType();
  assertTrue(baseType.hasQualifier(TypeQualifier.MEDIUMP));
  assertEquals("1.00f",
      ((FloatConstantExpr) variablesDeclaration.getDeclInfo(0)
          .getInitializer().getExpr()).getValue());
}