Ejemplo n.º 1
0
def _Check_FormatRawComment(comment, expected):
    try:
        result = clang_completer._FormatRawComment(comment)
        assert_that(result, equal_to(expected))
    except:
        print("Failed while parsing:\n"
              "'" + comment + "'\n"
              "Expecting:\n"
              "'" + expected + "'\n"
              "But found:\n"
              "'" + result + "'")
        raise
Ejemplo n.º 2
0
def _Check_FormatRawComment( comment, expected ):
  try:
    result = clang_completer._FormatRawComment( comment )
    eq_( result, expected )
  except:
    print( "Failed while parsing:\n"
           "'" + comment + "'\n"
           "Expecting:\n"
           "'" + expected + "'\n"
           "But found:\n"
           "'" + result + "'" )
    raise