public static void assertEqualAsts(TranslationUnit first, TranslationUnit second) throws IOException, ParseTimeoutException { assertEqualAsts(PrettyPrinterVisitor.prettyPrintAsString(first), PrettyPrinterVisitor.prettyPrintAsString(second)); }
public static boolean isEqualAsts(String first, String second) throws IOException, ParseTimeoutException { return PrettyPrinterVisitor.prettyPrintAsString(ParseHelper.parse(first)) .equals( PrettyPrinterVisitor.prettyPrintAsString(ParseHelper.parse(second))); }
public static void assertEqualAsts(String string, TranslationUnit tu) throws IOException, ParseTimeoutException { assertEqualAsts(string, PrettyPrinterVisitor.prettyPrintAsString(tu)); }
public static boolean isEqualAsts(String first, TranslationUnit second) throws IOException, ParseTimeoutException { return isEqualAsts(first, PrettyPrinterVisitor.prettyPrintAsString(second)); }
public static void assertEqualAsts(String first, String second) throws IOException, ParseTimeoutException { assertEquals( PrettyPrinterVisitor.prettyPrintAsString(ParseHelper.parse(first)), PrettyPrinterVisitor.prettyPrintAsString(ParseHelper.parse(second)) ); }