* eina: add tests for eina fixed point sin/cos functions.

SVN revision: 48423
This commit is contained in:
Cedric BAIL 2010-04-29 17:08:24 +00:00
parent 2e4b0fddd8
commit 49c0a1e6e2
3 changed files with 3 additions and 1 deletions

View File

@ -200,7 +200,7 @@ eina_f32p32_sin(Eina_F32p32 a)
EINA_F32P32_PI);
idx = eina_f32p32_int_to(interpol);
if (idx >= MAX_PREC)
idx = MAX_PREC - (idx + 1);
idx = 2 * MAX_PREC - (idx + 1);
index2 = idx + 1;
if (index2 == MAX_PREC)

View File

@ -32,6 +32,7 @@ check_PROGRAMS = eina_suite
eina_suite_SOURCES = \
eina_suite.c \
eina_test_fp.c \
eina_test_stringshare.c \
eina_test_array.c \
eina_test_error.c \

View File

@ -33,6 +33,7 @@ struct _Eina_Test_Case
};
static const Eina_Test_Case etc[] = {
{ "FixedPoint", eina_test_fp },
{ "Array", eina_test_array },
{ "String Share", eina_test_stringshare },
{ "Log", eina_test_log },