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) { 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) { diff --git a/test/test_convert_C_to_F.c b/test/test_convert_C_to_F.c index a657ecb..1da29e8 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) { @@ -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 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) { diff --git a/test/test_convert_kg_to_g.c b/test/test_convert_kg_to_g.c index 53d0fd8..63a05f5 100644 --- a/test/test_convert_kg_to_g.c +++ b/test/test_convert_kg_to_g.c @@ -7,9 +7,9 @@ void setUp(void) { } -// Test teardown function + void tearDown(void) { - // This function will be called after each test + } // Test case for kg_to_gram function 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 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 diff --git a/test/test_convert_ton_to_mt.c b/test/test_convert_ton_to_mt.c index bce3793..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) { - // This function will be called before each test + } -// Test teardown function + void tearDown(void) { - // This function will be called after each test + } // Test case for tons_to_megatons function