From dcf1fc89bdfd413f01f7b5799a22d197d59dc766 Mon Sep 17 00:00:00 2001 From: fdai7057 Date: Thu, 2 Feb 2023 09:59:03 +0100 Subject: [PATCH] refactoring: add more test cases --- test/test_StringManipulation.c | 40 ++++++++++++++++++++++++++++++---- 1 file changed, 36 insertions(+), 4 deletions(-) diff --git a/test/test_StringManipulation.c b/test/test_StringManipulation.c index af7c1fb..5e9d2dc 100644 --- a/test/test_StringManipulation.c +++ b/test/test_StringManipulation.c @@ -7,15 +7,47 @@ void test_power() { - /*initializing test values*/ - int testValues[] = {1,2,3,4,5,6,7,8,9}; - int expectedValues[] = {1,4,9,16,25,36,49,64,81}; + + /*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); - /*assertions*/ const int exponent = 2; for(int i=0;i