summaryrefslogtreecommitdiff
path: root/src/test/testIsEmpty.c
diff options
context:
space:
mode:
authorjofret2007-04-18 16:46:20 +0000
committerjofret2007-04-18 16:46:20 +0000
commit9155c88f6221838ac3611d9cd651261663a37d1a (patch)
tree05f2e86ac01a7389b62d70bc974607f211c65bd6 /src/test/testIsEmpty.c
parent771e292d6db8a486824193b85854f86057278647 (diff)
downloadscilab2c-9155c88f6221838ac3611d9cd651261663a37d1a.tar.gz
scilab2c-9155c88f6221838ac3611d9cd651261663a37d1a.tar.bz2
scilab2c-9155c88f6221838ac3611d9cd651261663a37d1a.zip
Moving all tests in each function.
Better management with Autotools. Make check is now available !!
Diffstat (limited to 'src/test/testIsEmpty.c')
-rw-r--r--src/test/testIsEmpty.c79
1 files changed, 0 insertions, 79 deletions
diff --git a/src/test/testIsEmpty.c b/src/test/testIsEmpty.c
deleted file mode 100644
index 041db1e2..00000000
--- a/src/test/testIsEmpty.c
+++ /dev/null
@@ -1,79 +0,0 @@
-/*
-** -*- C -*-
-**
-** testIsEmpty.c
-** Made by Bruno JOFRET <bruno.jofret@inria.fr>
-**
-** Started on Wed Feb 14 16:07:57 2007 jofret
-** Last update Fri Feb 23 18:09:19 2007 jofret
-**
-** Copyright INRIA 2007
-*/
-
-#include <stdio.h>
-
-#include "isEmpty.h"
-
-#define ERROR 51
-
-int sisemptyaTest() {
- printf(">> Float array\n");
- float empty[5] = {0., 0., 0., 0., 0.};
- float full[5] = {1., 2., 3., 0., 0.};
-
- if (sisEmptya(empty, 5) == false) {
- printf("ERROR ! : Test Failed (empty array)\n");
- return ERROR;
- }
-
- if (sisEmptya(full, 5) == true) {
- printf("ERROR ! : Test Failed (non empty array)\n");
- return ERROR;
- }
-
- return 0;
-}
-
-int disemptyaTest() {
- printf(">> Double array\n");
-
- double empty[5] = {0., 0., 0., 0., 0.};
- double full[5] = {1., 2., 3., 0., 0.};
-
- if (disEmptya(empty, 5) == false) {
- printf("ERROR ! : Test Failed (empty array)\n");
- return ERROR;
- }
-
- if (disEmptya(full, 5) == true) {
- printf("ERROR ! : Test Failed (non empty array)\n");
- return ERROR;
- }
-
- return 0;
-}
-
-int cisemptyaTest() {
- printf(">> Float Complex array\n");
-
- return 0;
-}
-
-int zisemptyaTest() {
- printf(">> Double Complex array\n");
- return 0;
-}
-
-
-int testIsEmpty() {
- int sisemptyaTestStatus, disemptyaTestStatus = 0;
- int cisemptyaTestStatus, zisemptyaTestStatus = 0;
- printf("\n>>>> IsEmpty Tests\n");
- sisemptyaTestStatus = sisemptyaTest();
- disemptyaTestStatus = disemptyaTest();
- cisemptyaTestStatus = cisemptyaTest();
- zisemptyaTestStatus = zisemptyaTest();
-
- return (sisemptyaTestStatus + disemptyaTestStatus +
- cisemptyaTestStatus + zisemptyaTestStatus);
-}