@@ -407,43 +407,43 @@ def create_reset(output)
407407 end
408408
409409 def create_run_test ( output )
410- output . puts ( " /*=======Test Runner Used To Run Each Test=====*/" )
411- output . puts ( " static void run_test(UnityTestFunction func, const char* name, UNITY_LINE_TYPE line_num)" )
412- output . puts ( "{" )
413- output . puts ( " Unity.CurrentTestName = name;" )
414- output . puts ( " Unity.CurrentTestLineNumber = (UNITY_UINT) line_num;" )
415- output . puts ( " #ifdef UNITY_USE_COMMAND_LINE_ARGS" )
416- output . puts ( " if (!UnityTestMatches())" )
417- output . puts ( " return;" )
418- output . puts ( " #endif" )
419- output . puts ( " Unity.NumberOfTests++;" )
420- output . puts ( " UNITY_CLR_DETAILS();" )
421- output . puts ( " UNITY_EXEC_TIME_START();" )
422- output . puts ( " CMock_Init();" )
423- output . puts ( " if (TEST_PROTECT())" )
424- output . puts ( " {" )
410+ output . puts ( ' /*=======Test Runner Used To Run Each Test=====*/' )
411+ output . puts ( ' static void run_test(UnityTestFunction func, const char* name, UNITY_LINE_TYPE line_num)' )
412+ output . puts ( '{' )
413+ output . puts ( ' Unity.CurrentTestName = name;' )
414+ output . puts ( ' Unity.CurrentTestLineNumber = (UNITY_UINT) line_num;' )
415+ output . puts ( ' #ifdef UNITY_USE_COMMAND_LINE_ARGS' )
416+ output . puts ( ' if (!UnityTestMatches())' )
417+ output . puts ( ' return;' )
418+ output . puts ( ' #endif' )
419+ output . puts ( ' Unity.NumberOfTests++;' )
420+ output . puts ( ' UNITY_CLR_DETAILS();' )
421+ output . puts ( ' UNITY_EXEC_TIME_START();' )
422+ output . puts ( ' CMock_Init();' )
423+ output . puts ( ' if (TEST_PROTECT())' )
424+ output . puts ( ' {' )
425425 if @options [ :plugins ] . include? ( :cexception )
426- output . puts ( " volatile CEXCEPTION_T e;" )
427- output . puts ( " Try {" )
426+ output . puts ( ' volatile CEXCEPTION_T e;' )
427+ output . puts ( ' Try {' )
428428 output . puts ( " #{ @options [ :setup_name ] } ();" )
429- output . puts ( " func();" )
430- output . puts ( " } Catch(e) {" )
431- output . puts ( " TEST_ASSERT_EQUAL_HEX32_MESSAGE(CEXCEPTION_NONE, e, \ " Unhandled Exception!\ " );" )
432- output . puts ( " }" )
429+ output . puts ( ' func();' )
430+ output . puts ( ' } Catch(e) {' )
431+ output . puts ( ' TEST_ASSERT_EQUAL_HEX32_MESSAGE(CEXCEPTION_NONE, e, "Unhandled Exception!");' )
432+ output . puts ( ' }' )
433433 else
434434 output . puts ( " #{ @options [ :setup_name ] } ();" )
435- output . puts ( " func();" )
435+ output . puts ( ' func();' )
436436 end
437- output . puts ( " }" )
438- output . puts ( " if (TEST_PROTECT())" )
439- output . puts ( " {" )
437+ output . puts ( ' }' )
438+ output . puts ( ' if (TEST_PROTECT())' )
439+ output . puts ( ' {' )
440440 output . puts ( " #{ @options [ :teardown_name ] } ();" )
441- output . puts ( " CMock_Verify();" )
442- output . puts ( " }" )
443- output . puts ( " CMock_Destroy();" )
444- output . puts ( " UNITY_EXEC_TIME_STOP();" )
445- output . puts ( " UnityConcludeTest();" )
446- output . puts ( "}" )
441+ output . puts ( ' CMock_Verify();' )
442+ output . puts ( ' }' )
443+ output . puts ( ' CMock_Destroy();' )
444+ output . puts ( ' UNITY_EXEC_TIME_STOP();' )
445+ output . puts ( ' UnityConcludeTest();' )
446+ output . puts ( '}' )
447447 end
448448
449449 def create_args_wrappers ( output , tests )
@@ -465,7 +465,7 @@ def create_args_wrappers(output, tests)
465465 def create_warning_test ( output , filename , tests )
466466 if count_tests ( tests ) == 0
467467 warning_test = {
468- :test => " test_empty_warning" ,
468+ :test => ' test_empty_warning' ,
469469 :line_number => 0
470470 }
471471 output . puts ( "\n /*=======Warning Test=====*/" )
@@ -475,7 +475,7 @@ def create_warning_test(output, filename, tests)
475475 output . puts ( "}\n " )
476476 tests = [ warning_test ]
477477 end
478- return tests
478+ tests
479479 end
480480
481481 def create_shuffle_tests ( output )
0 commit comments