Revision: 661 Author: christian.egli@xxxxxxxxxxxxxx Date: Fri Jun 1 07:34:32 2012 Log: Print the input string in the c based test framework http://code.google.com/p/liblouis/source/detail?r=661 Modified: /trunk/ChangeLog /trunk/tests/brl_checks.c ======================================= --- /trunk/ChangeLog Fri Jun 1 05:08:41 2012 +++ /trunk/ChangeLog Fri Jun 1 07:34:32 2012 @@ -1,5 +1,9 @@ 2012-06-01 Christian Egli <christian.egli@xxxxxx> + * tests/brl_checks.c (check_translation): Also print the input + string and delimit the strings with single quotes to better see + white space. + * TODO: Added a TODO file to note things that could/should be done. ======================================= --- /trunk/tests/brl_checks.c Mon May 7 05:46:39 2012 +++ /trunk/tests/brl_checks.c Fri Jun 1 07:34:32 2012 @@ -21,7 +21,6 @@ int i; for (i = 0; i < len; i++) printf("%c", buf[i]); - printf("\n"); } /* Check if a string is translated as expected. Return 0 if the @@ -66,9 +65,11 @@ { rv = 1; outbuf[outlen] = 0; - printf("Expected: %s\n", expected); - printf("Received: "); + printf("Input: '%s'\n", str); + printf("Expected: '%s'\n", expected); + printf("Received: '"); print_widechars(outbuf, outlen); + printf("'\n"); if (i < outlen && i < expectedlen) { printf("Diff: Expected '%c' but recieved '%c' in index %d\n", For a description of the software, to download it and links to project pages go to http://www.abilitiessoft.com