diff options
author | Behdad Esfahbod <behdad@src.gnome.org> | 2007-08-21 03:12:40 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2007-08-21 03:12:40 +0000 |
commit | b906a2d13f91766374e751f29074cba649ccb3fc (patch) | |
tree | ac31e79c42db3d4c77c8b8ceb13e7ae1b7eaa34d /tests/testscript.c | |
parent | 7c1a1c9db2cbbca42ff1e8afb2050df2a40a6854 (diff) | |
download | pango-b906a2d13f91766374e751f29074cba649ccb3fc.tar.gz |
Remove use of pango-script-table.h
svn path=/trunk/; revision=2407
Diffstat (limited to 'tests/testscript.c')
-rw-r--r-- | tests/testscript.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/testscript.c b/tests/testscript.c index 8e788f71..98f3bead 100644 --- a/tests/testscript.c +++ b/tests/testscript.c @@ -59,7 +59,6 @@ #include <string.h> #include "pango/pango-script.h" -#include "pango/pango-script-table.h" #undef VERBOSE @@ -140,34 +139,6 @@ unescape (const char *text) } static void -test_script_lookup (void) -{ - gunichar ch; - unsigned int i; - int j; - - for (ch = 0; ch < G_N_ELEMENTS (pango_script_easy_table); ch++) - ASSERT (pango_script_for_unichar (ch) == pango_script_easy_table[ch]); - - for (i = 0; i < G_N_ELEMENTS (pango_script_table); i++) - { - while (ch < pango_script_table[i].start) - { - ASSERT (pango_script_for_unichar (ch) == PANGO_SCRIPT_UNKNOWN); - ch++; - } - - for (j = 0; j < pango_script_table[i].chars; j++) - { - ASSERT (pango_script_for_unichar (ch) == pango_script_table[i].script); - ch++; - } - } - - ASSERT (pango_script_for_unichar (ch) == PANGO_SCRIPT_UNKNOWN); -} - -static void test_script_iter (void) { static RunTestData test_data[] = { @@ -253,7 +224,6 @@ main (int argc, char **argv) { g_setenv ("PANGO_RC_FILE", "./pangorc", TRUE); - test_script_lookup (); test_script_iter (); return 0; |