From 09fc06cbbc714f129a256e6ade15b2bec9a5b4a6 Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Wed, 3 Apr 2013 15:51:32 -0700 Subject: [PATCH] Cosmetics. --- .../org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java index e6631e9f890..a5e3e4687a2 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java @@ -2790,11 +2790,10 @@ public class AST2Tests extends AST2TestBase { } public void testProblems() throws Exception { - IASTTranslationUnit tu = parse( " a += ;", C, true, false); //$NON-NLS-1$ IASTProblem[] ps = CVisitor.getProblems(tu); - assertEquals(ps.length, 1); + assertEquals(1, ps.length); ps[0].getMessage(); }