}
#define NUM_TESTCASES 12
-int main() {
+int main()
+{
char *input[NUM_TESTCASES]={"asdfABCDEFGHKL54",
"foofuuMUHkk",
"AbC",
output_our = asmb(input_our);
output_ref = asmb_ref(input_ref);
if(memcmp(output_our,output_ref, len[i]) != 0) {
- printf("Testfall falsch! \n Input: \n");
+ printf("Testfall falsch!\nInput:\n\t");
for(j = 0; j <= len[i]; j++) {
- printf("%02X ",input[j]);
+ printf("%02X ", input[i][j]);
}
- printf("\nerwartet: \n");
+ printf("\nerwartet:\n\t");
for(j = 0; j <= len[i]; j++) {
- printf("%02X ",output_ref[j]);
+ printf("%02X ", output_ref[j]);
}
- printf("\ntatsaechliches Ergebnis: \n");
+ printf("\ntatsaechliches Ergebnis:\n\t");
for(j = 0; j <= len[i]; j++) {
- printf("%02X ",output_our[j]);
+ printf("%02X ", output_our[j]);
}
printf("\n");
}
return 0;
}
-