X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flibpspp%2Fi18n-test.c;h=03b96f2e431ba9a4ad993cc7dc93856afdd743af;hb=f5099c58d17e8f66a74a84918e688ef17936d392;hp=f2bead96f78e6bd1412e2bc925c4bbbf43407b9d;hpb=6d89701ab597b810da249ff0e4e42423e869df66;p=pspp-builds.git diff --git a/tests/libpspp/i18n-test.c b/tests/libpspp/i18n-test.c index f2bead96..03b96f2e 100644 --- a/tests/libpspp/i18n-test.c +++ b/tests/libpspp/i18n-test.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2010 Free Software Foundation, Inc. + Copyright (C) 2010, 2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,9 +18,13 @@ #include #include +#include #include "libpspp/i18n.h" +#undef NDEBUG +#include + int main (int argc, char *argv[]) { @@ -40,6 +44,7 @@ main (int argc, char *argv[]) i18n_init (); s = recode_string (argv[2], argv[1], argv[3], -1); puts (s); + assert (strlen (s) == recode_string_len (argv[2], argv[1], argv[3], -1)); free (s); return 0;