From 80b3a8d3283fcc8af89bc83b2266ccd894cc50a6 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Wed, 7 Oct 2009 17:09:41 +0100 Subject: [PATCH] [units] Ensure we don't have ponies The documentation states we should not parse ponies. Even with those with exclamation marks. Reviewed-by: Emmanuele Bassi --- tests/conform/test-clutter-units.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/conform/test-clutter-units.c b/tests/conform/test-clutter-units.c index e6fbe44a3..a685d1ad7 100644 --- a/tests/conform/test-clutter-units.c +++ b/tests/conform/test-clutter-units.c @@ -72,7 +72,7 @@ test_units_string (TestConformSimpleFixture *fixture, g_assert (clutter_units_get_unit_type (&units) == CLUTTER_UNIT_POINT); g_assert_cmpfloat (clutter_units_get_unit_value (&units), ==, 0.5f); - g_assert (clutter_units_from_string (&units, "1 pony") == FALSE); + g_assert (clutter_units_from_string (&units, "1 omg!!pony") == FALSE); clutter_units_from_pt (&units, 24.0); string = clutter_units_to_string (&units);