2
#include <clutter/clutter.h>
4
#include "test-conform-common.h"
7
test_fixed_constants (TestConformSimpleFixture *fixture,
10
g_assert_cmpint (COGL_FIXED_1, ==, COGL_FIXED_FROM_FLOAT (1.0));
11
g_assert_cmpint (COGL_FIXED_1, ==, COGL_FIXED_FROM_INT (1));
13
g_assert_cmpint (COGL_FIXED_0_5, ==, COGL_FIXED_FROM_FLOAT (0.5));
15
g_assert_cmpfloat (COGL_FIXED_TO_FLOAT (COGL_FIXED_1), ==, 1.0);
16
g_assert_cmpfloat (COGL_FIXED_TO_FLOAT (COGL_FIXED_0_5), ==, 0.5);