summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-09-18 21:29:37 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-09-18 21:29:37 +0000
commita83cf48e725c69f131b833a65069db3f05b0b52f (patch)
treef115fa679f438b50b16382aca32a52aab2053b1d /tests
parent43fa79404e3f90971dae6a99743d4edd70067b51 (diff)
downloadpango-a83cf48e725c69f131b833a65069db3f05b0b52f.tar.gz
Minor simplification.
2006-09-18 Behdad Esfahbod <behdad@gnome.org> * tools/gen-script-table.pl: * pango/pango-script-table.h: * pango/pango-script.c (pango_script_for_unichar): Minor simplification. * tests/testscript.c (test_script_lookup): Update to pass.
Diffstat (limited to 'tests')
-rw-r--r--tests/testscript.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/testscript.c b/tests/testscript.c
index 79c8471c..ebe6891d 100644
--- a/tests/testscript.c
+++ b/tests/testscript.c
@@ -142,15 +142,18 @@ unescape (const char *text)
static void
test_script_lookup (void)
{
- gunichar ch = 0;
+ 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_COMMON);
+ ASSERT (pango_script_for_unichar (ch) == PANGO_SCRIPT_UNKNOWN);
ch++;
}
@@ -161,7 +164,7 @@ test_script_lookup (void)
}
}
- ASSERT (pango_script_for_unichar (ch) == PANGO_SCRIPT_COMMON);
+ ASSERT (pango_script_for_unichar (ch) == PANGO_SCRIPT_UNKNOWN);
}
static void