summaryrefslogtreecommitdiff
path: root/src/bin/evil/evil_test_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/evil/evil_test_util.c')
-rw-r--r--src/bin/evil/evil_test_util.c110
1 files changed, 0 insertions, 110 deletions
diff --git a/src/bin/evil/evil_test_util.c b/src/bin/evil/evil_test_util.c
deleted file mode 100644
index 3763f88b64..0000000000
--- a/src/bin/evil/evil_test_util.c
+++ /dev/null
@@ -1,110 +0,0 @@
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif /* HAVE_CONFIG_H */
-
-#include <string.h>
-
-#include <Evil.h>
-
-#include "evil_suite.h"
-#include "evil_test_util.h"
-
-
-static int test_path_absolute_test_1(void)
-{
- char *path;
- int result;
-
- path = NULL;
- result = evil_path_is_absolute(path);
- if (result != 0)
- return 0;
-
- return 1;
-}
-
-static int test_path_absolute_test_2(void)
-{
- char *path;
- int result;
-
- path = "1";
- result = evil_path_is_absolute(path);
- if (result != 0)
- return 0;
-
- return 1;
-}
-
-static int test_path_absolute_test_3(void)
-{
- char *path;
- int result;
-
- path = "1:\\";
- result = evil_path_is_absolute(path);
- if (result != 0)
- return 0;
-
- return 1;
-}
-
-static int test_path_absolute_test_4(void)
-{
- char *path;
- int result;
-
- path = "1/\\";
- result = evil_path_is_absolute(path);
- if (result != 0)
- return 0;
-
- return 1;
-}
-
-static int test_path_absolute_test_5(void)
-{
- char *path;
- int result;
-
- path = "F:/foo";
- result = evil_path_is_absolute(path);
- if (result == 0)
- return 0;
-
- return 1;
-}
-
-static int test_path_absolute_test_6(void)
-{
- char *path;
- int result;
-
- path = "C:\\foo";
- result = evil_path_is_absolute(path);
- if (result == 0)
- return 0;
-
- return 1;
-}
-
-static int
-test_path_absolute_run(suite *s)
-{
- int res;
-
- res = test_path_absolute_test_1();
- res &= test_path_absolute_test_2();
- res &= test_path_absolute_test_3();
- res &= test_path_absolute_test_4();
- res &= test_path_absolute_test_5();
- res &= test_path_absolute_test_6();
-
- return res;
-}
-
-int
-test_util(suite *s)
-{
- return test_path_absolute_run(s);
-}