Commit b7d420d2 authored by Matthew P. Russell's avatar Matthew P. Russell
Browse files

Update unit_test

parent 1d054b1f
......@@ -34,7 +34,7 @@ OUTPUT = "37"
#-----------------------------------------------------------------------------#
# inform prints the provided string to cout in the provided color
# if linebreak, add a dotted line
def inform(s, color=INFO, linebreak=False):
def inform(s, color=OUTPUT, linebreak=False):
if color == INFO:
sys.stderr.write("\n\n")
......@@ -212,10 +212,8 @@ for test in test_names:
#-----------------------------------------------------------------------------#
# print test results and cleanup #
#-----------------------------------------------------------------------------#
inform(str(num_tests_passed) + " / " + str(num_tests) +
" tests passed", color=INFO)
inform(str(num_tests_passed) + " / " + str(num_tests) + " tests passed")
inform(str(num_valgrind_passed) + " / " + str(num_tests) +
" valgrind tests passed", color=INFO)
inform(str(num_valgrind_passed) + " / " + str(num_tests) + " valgrind tests passed")
cleanup()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment