From eee6104f192d81b8693e9266a43559935f0634e2 Mon Sep 17 00:00:00 2001 From: Sandro Welte Date: Fri, 9 Feb 2024 17:20:07 +0100 Subject: [PATCH 01/11] refactoring: removed unnecessary comments --- test/test_arithmeticMultiplication_Double.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_arithmeticMultiplication_Double.c b/test/test_arithmeticMultiplication_Double.c index 2077e91..f818df3 100644 --- a/test/test_arithmeticMultiplication_Double.c +++ b/test/test_arithmeticMultiplication_Double.c @@ -3,11 +3,11 @@ #include "limits.h" void setUp(void) { - // set up code here + } void tearDown(void) { - // clean up code here + } void test_arithmeticMultiplication_doubletimesdoubleequalsdouble(void) { From 335241d120cbcb21403959ba469bc2f754ed5630 Mon Sep 17 00:00:00 2001 From: Sandro Welte Date: Fri, 9 Feb 2024 17:20:31 +0100 Subject: [PATCH 02/11] refactoring: removed unnecessary comments --- test/test_arithmeticMultiplication_Float.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_arithmeticMultiplication_Float.c b/test/test_arithmeticMultiplication_Float.c index 8121145..cb14aaa 100644 --- a/test/test_arithmeticMultiplication_Float.c +++ b/test/test_arithmeticMultiplication_Float.c @@ -3,11 +3,11 @@ #include "limits.h" void setUp(void) { - // set up code here + } void tearDown(void) { - // clean up code here + } void test_arithmeticMultiplication_floattimesfloatequalsfloat(void) { From 64276486bd0dd3b896534946a40807cd29b78268 Mon Sep 17 00:00:00 2001 From: Sandro Welte Date: Fri, 9 Feb 2024 17:20:53 +0100 Subject: [PATCH 03/11] refactoring: removed unnecessary comments --- test/test_convert_C_to_F.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_convert_C_to_F.c b/test/test_convert_C_to_F.c index a657ecb..a3b9630 100644 --- a/test/test_convert_C_to_F.c +++ b/test/test_convert_C_to_F.c @@ -8,7 +8,7 @@ void setUp(void) { } void tearDown(void) { - // Clean up resources here if needed + } void test_convert_temperature(void) { From 26cbb2de2a4fa2ad379c66a0de99f2adff7cdd51 Mon Sep 17 00:00:00 2001 From: Sandro Welte Date: Fri, 9 Feb 2024 17:21:24 +0100 Subject: [PATCH 04/11] refactoring: removed unnecessary comments --- test/test_convert_g_to_mg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_convert_g_to_mg.c b/test/test_convert_g_to_mg.c index 46b6755..377febf 100644 --- a/test/test_convert_g_to_mg.c +++ b/test/test_convert_g_to_mg.c @@ -1,5 +1,5 @@ -#include "unity.h" // Include the Unity header file -#include "../src/convert_g_to_mg.h" // Include the header file containing the function to be tested +#include "unity.h" +#include "../src/convert_g_to_mg.h" // Test setup function void setUp(void) { From e76550360d552496486da0e03503a9f0a0aa218a Mon Sep 17 00:00:00 2001 From: Sandro Welte Date: Fri, 9 Feb 2024 17:21:45 +0100 Subject: [PATCH 05/11] refactoring: removed unnecessary comments --- test/test_convert_kg_to_g.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_convert_kg_to_g.c b/test/test_convert_kg_to_g.c index 53d0fd8..22f558b 100644 --- a/test/test_convert_kg_to_g.c +++ b/test/test_convert_kg_to_g.c @@ -7,7 +7,7 @@ void setUp(void) { } -// Test teardown function + void tearDown(void) { // This function will be called after each test } From c64b531f900a93c162068255cb8a55a88f5f08fa Mon Sep 17 00:00:00 2001 From: Sandro Welte Date: Fri, 9 Feb 2024 17:22:09 +0100 Subject: [PATCH 06/11] refactoring: removed unnecessary comments --- test/test_convert_kg_to_ton.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_convert_kg_to_ton.c b/test/test_convert_kg_to_ton.c index d68b700..2988f2c 100644 --- a/test/test_convert_kg_to_ton.c +++ b/test/test_convert_kg_to_ton.c @@ -1,4 +1,4 @@ -#include "unity.h" // Include the Unity header file +#include "unity.h" #include "../src/convert_kg_to_ton.h" // Test setup function From 33c1fcf48178fb998a04f740f87d2a721422d043 Mon Sep 17 00:00:00 2001 From: Sandro Welte Date: Fri, 9 Feb 2024 17:22:30 +0100 Subject: [PATCH 07/11] refactoring: removed unnecessary comments --- test/test_convert_ton_to_kg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_convert_ton_to_kg.c b/test/test_convert_ton_to_kg.c index 9d7ad2c..01fcbdc 100644 --- a/test/test_convert_ton_to_kg.c +++ b/test/test_convert_ton_to_kg.c @@ -1,9 +1,9 @@ -#include "unity.h" // Include the Unity header file +#include "unity.h" #include "../src/convert_ton_to_kg.h" #include "limits.h" // Test setup function void setUp(void) { - // This function will be called before each test + } // Test teardown function From adfc92ba7a7870d404ef3f92bbdf4c81ed330a69 Mon Sep 17 00:00:00 2001 From: Sandro Welte Date: Fri, 9 Feb 2024 17:23:03 +0100 Subject: [PATCH 08/11] refactoring: removed unnecessary comments --- test/test_convert_ton_to_mt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_convert_ton_to_mt.c b/test/test_convert_ton_to_mt.c index bce3793..6e9d86d 100644 --- a/test/test_convert_ton_to_mt.c +++ b/test/test_convert_ton_to_mt.c @@ -3,7 +3,7 @@ // Test setup function void setUp(void) { - // This function will be called before each test + } // Test teardown function From 7bb1e6d599d2689591458a495be8937c538690d6 Mon Sep 17 00:00:00 2001 From: Sandro Welte Date: Fri, 9 Feb 2024 17:23:21 +0100 Subject: [PATCH 09/11] refactoring: removed unnecessary comments --- test/test_convert_C_to_F.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_convert_C_to_F.c b/test/test_convert_C_to_F.c index a3b9630..1da29e8 100644 --- a/test/test_convert_C_to_F.c +++ b/test/test_convert_C_to_F.c @@ -16,10 +16,10 @@ void test_convert_temperature(void) { char from_unit = 'c'; char to_unit = 'f'; - // Perform the conversion + float result = convert_temperature(temperature, from_unit, to_unit); - // Define the expected result (100 degrees Celsius to Fahrenheit is 212) + float expectedResult = 212; // Assert the result From 65705e3283fd46364891781685df656995f538be Mon Sep 17 00:00:00 2001 From: Sandro Welte Date: Fri, 9 Feb 2024 17:23:39 +0100 Subject: [PATCH 10/11] refactoring: removed unnecessary comments --- test/test_convert_kg_to_g.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_convert_kg_to_g.c b/test/test_convert_kg_to_g.c index 22f558b..63a05f5 100644 --- a/test/test_convert_kg_to_g.c +++ b/test/test_convert_kg_to_g.c @@ -9,7 +9,7 @@ void setUp(void) { void tearDown(void) { - // This function will be called after each test + } // Test case for kg_to_gram function From 59901e47e4ac06b680cbe1d390dc15674be6521f Mon Sep 17 00:00:00 2001 From: Sandro Welte Date: Fri, 9 Feb 2024 17:24:09 +0100 Subject: [PATCH 11/11] refactoring: removed unnecessary comments --- test/test_convert_ton_to_mt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_convert_ton_to_mt.c b/test/test_convert_ton_to_mt.c index 6e9d86d..e479ba4 100644 --- a/test/test_convert_ton_to_mt.c +++ b/test/test_convert_ton_to_mt.c @@ -1,14 +1,14 @@ #include "unity.h" // Include the Unity header file -#include "../src/convert_ton_to_mt.h" // Include the header file containing the function to be tested +#include "../src/convert_ton_to_mt.h" // Test setup function void setUp(void) { } -// Test teardown function + void tearDown(void) { - // This function will be called after each test + } // Test case for tons_to_megatons function