Skip to content

Commit c79d3fb

Browse files
committed
Changed error msg for unit tests
1 parent b4eadf8 commit c79d3fb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

unittest/unittest.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ static void alphabet_tests() {
4949
convertToAlphabet(enc, 64, str, i);
5050
if (*enc) {
5151
nrErrors++;
52-
printf("convertToAlphabet(\"%s\",%d) = \"%s\"\n", str, i, dec);
52+
printf("*** ERROR *** convertToAlphabet(\"%s\",%d) = \"%s\"\n", str, i, dec);
5353
}
5454
else {
5555
// see if empty UTF16 converts to empty string
5656
nrTests++;
5757
convertToRoman(dec, 64, enc);
5858
if (*dec) {
5959
nrErrors++;
60-
printf("convertToRoman(\"\") = \"%s\"\n", dec);
60+
printf("*** ERROR *** convertToRoman(\"\") = \"%s\"\n", dec);
6161
}
6262
}
6363

@@ -69,7 +69,7 @@ static void alphabet_tests() {
6969
nrTests++;
7070
if (strlen(dec) != 59 || strcmp(dec, expect)) {
7171
nrErrors++;
72-
printf("convertToRoman(convertToAlphabet(\"%s\",%d))=\"%s\"\n", str, i, dec);
72+
printf("*** ERROR *** convertToRoman(convertToAlphabet(\"%s\",%d))=\"%s\"\n", str, i, dec);
7373
}
7474

7575
// see if E/U voweled mapcodes (re)convert as expected
@@ -79,7 +79,7 @@ static void alphabet_tests() {
7979
nrTests++;
8080
if (strcmp(dec, str) != 0) {
8181
nrErrors++;
82-
printf("convertToRoman(convertToAlphabet(\"%s\",%d))=\"%s\"\n", str, i, dec);
82+
printf("*** ERROR *** convertToRoman(convertToAlphabet(\"%s\",%d))=\"%s\"\n", str, i, dec);
8383
}
8484
else {
8585
nrTests++;
@@ -90,7 +90,7 @@ static void alphabet_tests() {
9090
nrTests++;
9191
if (strcmp(dec, "Oio 112.3AU") != 0) {
9292
nrErrors++;
93-
printf("convertToRoman(convertToAlphabet(\"%s\",%d))=\"%s\"\n", str, i, dec);
93+
printf("*** ERROR *** convertToRoman(convertToAlphabet(\"%s\",%d))=\"%s\"\n", str, i, dec);
9494
}
9595
}
9696
}

0 commit comments

Comments
 (0)