From eef4456223d452f6d5bf2308f083f3304172c630 Mon Sep 17 00:00:00 2001 From: Oskar <> Date: Fri, 22 Mar 2024 20:32:39 +0100 Subject: vpc(t) tested OK i think --- i_validation.c | 2 +- test/7ed-TESTING | Bin 0 -> 55464 bytes test/testcases/i_validation_cases.txt | 25 ++++++++++++++++++++++++- test/vcimm | Bin 0 -> 27000 bytes test/vcpm | Bin 0 -> 27000 bytes test/vpct | Bin 0 -> 26872 bytes 6 files changed, 25 insertions(+), 2 deletions(-) create mode 100755 test/7ed-TESTING create mode 100755 test/vcimm create mode 100755 test/vcpm create mode 100755 test/vpct diff --git a/i_validation.c b/i_validation.c index ffd7c0a..9ae541e 100644 --- a/i_validation.c +++ b/i_validation.c @@ -103,7 +103,7 @@ int validate_plus_continue(char *smode_buf) { // if vcpm returns _PLUS_CONTINUE } }//outer nested loop - return 0; // remove, its just here to make the compiler not output a bunch of warnings + return _NA; } diff --git a/test/7ed-TESTING b/test/7ed-TESTING new file mode 100755 index 0000000..bb99406 Binary files /dev/null and b/test/7ed-TESTING differ diff --git a/test/testcases/i_validation_cases.txt b/test/testcases/i_validation_cases.txt index 4c14ec2..849ce7f 100644 --- a/test/testcases/i_validation_cases.txt +++ b/test/testcases/i_validation_cases.txt @@ -66,4 +66,27 @@ Overall results: Tested OK. Seems like its working like it should. validate_plus_continue Positive input (Valid): -Negative (Invalid): \ No newline at end of file +L+1 +L+10 +L+9 +L+90 +L+5 +L+50 +L+11 +L+99 +L+345345 +L+12313213213213 + +Negative (Invalid): +L+1L +L+11L +L+9L +L+5L +L+90L +L+500+ +L+23+23 +L+13++ +L-10 +L+1+ + +Overall results: Tested OK. Seems fine. \ No newline at end of file diff --git a/test/vcimm b/test/vcimm new file mode 100755 index 0000000..b205193 Binary files /dev/null and b/test/vcimm differ diff --git a/test/vcpm b/test/vcpm new file mode 100755 index 0000000..bef6858 Binary files /dev/null and b/test/vcpm differ diff --git a/test/vpct b/test/vpct new file mode 100755 index 0000000..3c05356 Binary files /dev/null and b/test/vpct differ -- cgit v1.2.3