From 654f88fbc9bcb54f9bd2d5586236234e03424044 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 27 May 2011 03:38:46 -0400 Subject: [PATCH] [test-common] Test hb_direction_to_string() Caught by "make check-symbols". --- test/test-common.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test-common.c b/test/test-common.c index a75138c..d5cbfc7 100644 --- a/test/test-common.c +++ b/test/test-common.c @@ -87,6 +87,12 @@ test_types_direction (void) g_assert_cmpint (HB_DIRECTION_RTL, ==, hb_direction_from_string ("RtL")); g_assert_cmpint (HB_DIRECTION_RTL, ==, hb_direction_from_string ("right-to-left")); g_assert_cmpint (HB_DIRECTION_TTB, ==, hb_direction_from_string ("ttb")); + + g_assert (0 == strcmp ("ltr", hb_direction_to_string (HB_DIRECTION_LTR))); + g_assert (0 == strcmp ("rtl", hb_direction_to_string (HB_DIRECTION_RTL))); + g_assert (0 == strcmp ("ttb", hb_direction_to_string (HB_DIRECTION_TTB))); + g_assert (0 == strcmp ("btt", hb_direction_to_string (HB_DIRECTION_BTT))); + g_assert (0 == strcmp ("invalid", hb_direction_to_string (HB_DIRECTION_INVALID))); } static void -- 2.7.4