summaryrefslogtreecommitdiff
path: root/test/validate_check_p_m.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/validate_check_p_m.c')
-rw-r--r--test/validate_check_p_m.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/test/validate_check_p_m.c b/test/validate_check_p_m.c
deleted file mode 100644
index fe54bd9..0000000
--- a/test/validate_check_p_m.c
+++ /dev/null
@@ -1,37 +0,0 @@
-#include <stdlib.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <string.h>
-#include <errno.h>
-#include "../7ed.h"
-#include "../i_validation.h"
-#include "../input.h"
-#include <stdint.h>
-
-// Test for validate_check_p_m
-
-int main () {
- uint64_t focus = 1;
- char smode_buf[SMODE_MAX_SIZE]; // Smode buffer
- fprintf(stdout, "(%lu): ", focus); // UI
- fgets(smode_buf, SMODE_MAX_SIZE, stdin); // Read user input
-
- int ret = validate_check_p_m(smode_buf);
-
- if(ret == _NA) {
- printf("NA\n");
- }
- if(ret == _PLUS_CONTINUE) {
- printf("plus continue\n");
- }
-
- if(ret == _INVALID) {
- printf("?\n");
- }
- if(ret == _VALID) {
- printf("valid\n");
- }
-
- return 0;
-
-} \ No newline at end of file