コード例 #1
0
def print_test_header(testnum, astyleexe):
    """Print header information for a test.
    """
    spaces = 16 - len(astyleexe)
    print()
    print("TEST {0} with {1}".format(testnum, astyleexe), end='')
    print(' ' * spaces, end='')
    print(libastyle.get_formatted_time())
コード例 #2
0
ファイル: system_test.py プロジェクト: svn2github/astyle-code
def print_test_header(index):
    """Print header information for a test.
    """
    test_no = index + 1
    print('\n' + ('-' * 60) + '\n')
    print("TEST {0} OF {1}".format(test_no, len(__braces)), end='')
    print(' ' * 12, end='')
    print(libastyle.get_formatted_time())
    print(__braces[:test_no])
    print(__braces)
コード例 #3
0
ファイル: system-test.py プロジェクト: JeremyActronika/astyle
def print_test_header(brackets, index):
    """Print header information for a test.
	"""
    test_no = index + 1
    print('\n' + ('-' * 60) + '\n')
    print("TEST {0} OF {1}".format(test_no, len(brackets)), end='')
    print(' ' * 12, end='')
    print(libastyle.get_formatted_time())
    print(brackets[:test_no])
    print(brackets)