tools/tinytest-codegen.py: Add extra newline and result message.

This is an alternative to f4ed2df that adds a newline so that the output of
the test starts on a new line and the result of the test is prefixed with
"result: " to distinguish it from the test output.

Suggested-by: @dpgeorge
pull/1/head
David Lechner 2019-12-18 12:59:48 -06:00 committed by Damien George
parent 1605c7e584
commit fd0ba7be07
1 changed files with 2 additions and 0 deletions

View File

@ -33,8 +33,10 @@ test_function = (
"void {name}(void* data) {{\n"
" static const char pystr[] = {script};\n"
" static const char exp[] = {output};\n"
' printf("\\n");\n'
" upytest_set_expected_output(exp, sizeof(exp) - 1);\n"
" upytest_execute_test(pystr);\n"
' printf("result: ");\n'
"}}"
)