diff --git a/test/test_StringManipulation.c b/test/test_StringManipulation.c index 4c14804..3a23b57 100644 --- a/test/test_StringManipulation.c +++ b/test/test_StringManipulation.c @@ -6,17 +6,31 @@ void test_toUnsignedInteger() { - /*variables*/ - char *n1 = "176", *n2 = "199", *n3 = "200", *n4 = "500", *n5 = "600", *n6 = "700"; - /*assertions*/ - TEST_ASSERT_EQUAL_INT(176,toUnsignedInteger(n1)); - TEST_ASSERT_EQUAL_INT(199,toUnsignedInteger(n2)); - TEST_ASSERT_EQUAL_INT(200,toUnsignedInteger(n3)); - TEST_ASSERT_EQUAL_INT(500,toUnsignedInteger(n4)); - TEST_ASSERT_EQUAL_INT(600,toUnsignedInteger(n5)); - TEST_ASSERT_EQUAL_INT(700,toUnsignedInteger(n6)); -} + /*test block 1*/ + char *strings[] = {"111","123","542","994","9000","8384","6473","12345","57837","78387","93276","1000","8444","48484"}; + int expected[] = {111,123,542,994,9000,8384,6473,12345,57837,78387,93276,1000,8444,48484}; + int length = sizeof(expected)/sizeof(int); + for(int i=0;i