From 30d8febb0b1efe5f0363932e5f666385c43518bd Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Thu, 7 May 2020 16:48:06 +0200 Subject: [PATCH] test code beautification --- modules/database/test/std/rec/linkFilterTest.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/modules/database/test/std/rec/linkFilterTest.c b/modules/database/test/std/rec/linkFilterTest.c index 12eba74ca..c400d1aac 100644 --- a/modules/database/test/std/rec/linkFilterTest.c +++ b/modules/database/test/std/rec/linkFilterTest.c @@ -69,7 +69,7 @@ static void changeRange(long start, long stop, long step) testdbPutFieldOk("wf.INP", DBF_STRING, linkstring); } -static double buf[] = {1, 2, 3, 4, 5, 6, 7, 8, 0, 0, 2, 4, 6}; +static const double buf[] = {1, 2, 3, 4, 5, 6, 7, 8, 0, 0, 2, 4, 6}; static void expectRange(long start, long end) { @@ -79,15 +79,6 @@ static void expectRange(long start, long end) testdbGetArrFieldEqual("wf.VAL", DBF_DOUBLE, n+2, n, buf+start); } -#if 0 -static void expectEmptyArray(void) -{ - /* empty arrays are now allowed at the moment */ - testDiag("expecting empty array"); - testdbGetFieldEqual("wf.NORD", DBF_LONG, 0); -} -#endif - MAIN(linkFilterTest) { testPlan(98);