Revision: 563 Author: christian.egli@xxxxxxxxxxxxxx Date: Fri Apr 13 05:16:37 2012 Log: Enhance the test infrastructure so that output positions can be checked for different tables http://code.google.com/p/liblouis/source/detail?r=563 Modified: /trunk/ChangeLog /trunk/tests/brl_checks.c /trunk/tests/brl_checks.h ======================================= --- /trunk/ChangeLog Fri Mar 23 08:52:09 2012 +++ /trunk/ChangeLog Fri Apr 13 05:16:37 2012 @@ -1,3 +1,9 @@ +2012-04-13 Christian Egli <christian.egli@xxxxxx> + + * tests/brl_checks.h: + * tests/brl_checks.c (check_outpos): Enhance so that you can pass + the table list as a parameter. + 2012-03-23 Christian Egli <christian.egli@xxxxxx> * tests/tables/pass2.ctb: ======================================= --- /trunk/tests/brl_checks.c Fri Mar 23 08:47:43 2012 +++ /trunk/tests/brl_checks.c Fri Apr 13 05:16:37 2012 @@ -95,7 +95,7 @@ } int -check_outpos(const char *str, const int *expected_poslist)+check_outpos(const char *tableList, const char *str, const int *expected_poslist)
{ widechar *inbuf; widechar *outbuf; @@ -114,7 +114,7 @@ { inbuf[i] = str[i]; } - lou_translate(TRANSLATION_TABLE, inbuf, &inlen, outbuf, &outlen, + lou_translate(tableList, inbuf, &inlen, outbuf, &outlen, NULL, NULL, outpos, inpos, NULL, 0); for (i = 0; i < outlen; i++) { ======================================= --- /trunk/tests/brl_checks.h Thu Apr 15 04:22:36 2010 +++ /trunk/tests/brl_checks.h Fri Apr 13 05:16:37 2012 @@ -1,6 +1,6 @@ #define TRANSLATION_TABLE "en-us-g2.ctb" -int check_outpos(const char *str, const int *expected_poslist);+int check_outpos(const char *tableList, const char *str, const int *expected_poslist);
/* Check if the cursor position is where you expect it to be after translating str. Return 0 if the translation is as expected and 1 For a description of the software, to download it and links to project pages go to http://www.abilitiessoft.com