From 41f0b11f71f85c269231ffddbb5fc7a1d70d9f55 Mon Sep 17 00:00:00 2001 From: fdai7057 Date: Sun, 22 Jan 2023 12:03:00 +0100 Subject: [PATCH] refactoring: Modified unit test for function error(). Replaced variables with arras and consecutive execution of assertion calls with for-loops and added test cases for valid error codes. --- tests/build/test/cache/test_Error.c | 86 +- tests/build/test/out/c/test_Error.o | Bin 5544 -> 5972 bytes tests/build/test/out/test_Error.out | Bin 56508 -> 56964 bytes .../build/test/preprocess/files/test_Error.c | 86 +- tests/build/test/results/test_Error.pass | 5992 ++++++++++++++++- tests/test/test_Error.c | 56 +- 6 files changed, 6114 insertions(+), 106 deletions(-) diff --git a/tests/build/test/cache/test_Error.c b/tests/build/test/cache/test_Error.c index e9c72bf..f40d7cc 100644 --- a/tests/build/test/cache/test_Error.c +++ b/tests/build/test/cache/test_Error.c @@ -20,94 +20,98 @@ void test_error() int bound = 1000; - int val1,val2,val3,val4,val5,val6,val7,val8,val9,val10; + int invalidErrorCodes_1[bound]; + int invalidErrorCodesLarge_2[bound]; + int invalidErrorCodesLargest_3[bound]; - val1 = rand() % 1000 + 1; + int validErrorCodeUnsuccessfulLogin[bound]; - val2 = rand() % 1000 + 1; + int validErrorCodeMaximumNumberOfAttempts[bound]; - val3 = rand() % 1000 + 1; + int validErrorCodeNoMenuEntryForNumber[bound]; - val4 = rand() % 1000 + 1; - val5 = rand() % 1000 + 1; - val6 = rand() % 1000 + 1; + for(int i=0;id{A0_qWHU|HWvp`<4Ngd-37gH*#b!gJOVuvX#Mx$BWuNc!{GQ_} z9^3jO&wak1@7weJy*~^^+II^Ztbb9hsWcH%O*hpk{v~w=k z^Zsb%lL%qsW%wDsC(BaE_#8Nt~2lxFYvSL z44m---@MMiX)o~g>kORm0$;n%!11ZbIU2YRr}5(qc<#*UxA*jx<)$xxl$$wor6_my z%s+3co=MEiV2*Rs)ia~Jg%J#D&$(R52`?hI?QcC^#Oizmd-orT6LGAmWf|u0lWT+S zjvmTU(5PH|=E}N!l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KPnfy`717fBD$qbEIt*jqIGa%)^*;k0>$$@G|MxbDJL*Aym<)5yriju<*-{N$k{*1q4qsF+*{H=WhJjRhH zGk>O{vc^$KvKw-CN5(dzG9>qeY#h=g(>;U8vhgZG@=K77mr;`c2$}9Xurp!X z4rLdxYfs)kRf^_&_OF)QeAI#Dz$<<6NdtRZ;I{+Vl~){aNg;g8fyq)N4?H+B!m(NS+1RxKbgRuAWMGWbNb(W7j8b5RMOHXD2xVvT?IRasp)IfF!ve z2ZAamX9^t;5MuK94+-EcN80 zj<_V5&pG0XH1;RLbwiSkA2*ockmvI)M_lp;k^JP5j#4K7{zzhE434xv!Awo)9wsh^ zvEx4Z9OQJKQRj*@zB36GinEhmt?12)YS?;6^;G{^EqdOc=@?J zDZT2}xz!RvExr(?{AMlw$jdigh*FbYW9&i@KY5{}(s~oR=09GDl6&mt5f@|SeTVsA M5bwu)*2VV!3s_j;-~a#s diff --git a/tests/build/test/preprocess/files/test_Error.c b/tests/build/test/preprocess/files/test_Error.c index e9c72bf..f40d7cc 100644 --- a/tests/build/test/preprocess/files/test_Error.c +++ b/tests/build/test/preprocess/files/test_Error.c @@ -20,94 +20,98 @@ void test_error() int bound = 1000; - int val1,val2,val3,val4,val5,val6,val7,val8,val9,val10; + int invalidErrorCodes_1[bound]; + int invalidErrorCodesLarge_2[bound]; + int invalidErrorCodesLargest_3[bound]; - val1 = rand() % 1000 + 1; + int validErrorCodeUnsuccessfulLogin[bound]; - val2 = rand() % 1000 + 1; + int validErrorCodeMaximumNumberOfAttempts[bound]; - val3 = rand() % 1000 + 1; + int validErrorCodeNoMenuEntryForNumber[bound]; - val4 = rand() % 1000 + 1; - val5 = rand() % 1000 + 1; - val6 = rand() % 1000 + 1; + for(int i=0;i