#include #include #include #include #include "../src/stringManipulation.c" void test_everyCharacterIsDigit() { /*test values*/ char str_1[] = "1234", str_2[] = "hey123", str_3[] = "good evening!", str_4[] = "äöü"; /*assertions*/ TEST_ASSERT_TRUE(everyCharacterIsDigit(str_1)); TEST_ASSERT_FALSE(everyCharacterIsDigit(str_2)); TEST_ASSERT_FALSE(everyCharacterIsDigit(str_3)); TEST_ASSERT_FALSE(everyCharacterIsDigit(str_4)); } void test_power() { /*test block 1*/ int testValues[] = {1,2,3,4,5,6,7,8,9,10}; int expectedValues[] = {1,4,9,16,25,36,49,64,81,100}; int length = sizeof(testValues)/sizeof(int); const int exponent = 2; for(int i=0;i