From 3bb6a5a525bc3edbf853c9f557486fb12081840a Mon Sep 17 00:00:00 2001 From: Oskar <> Date: Fri, 22 Mar 2024 19:56:34 +0100 Subject: vcimm tested, some invalid checks are let through but thats out of scope for this function. It will be checked for in other functions. --- test/testcases/i_validation_cases.txt | 17 +++++++++++++++++ test/validate_check_imm.c | 8 +++++++- 2 files changed, 24 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/testcases/i_validation_cases.txt b/test/testcases/i_validation_cases.txt index 83460a2..4c14ec2 100644 --- a/test/testcases/i_validation_cases.txt +++ b/test/testcases/i_validation_cases.txt @@ -45,7 +45,24 @@ Overall results: Tested OK. Seems like its working like it should now. validate_check_imm Positive input (Valid): +L +L1 +L9 +L10 +L90 +L900 +L100 + Negative (Invalid): +LL +L+ +L+1 +L0 +L+0 +L00 +L0L + +Overall results: Tested OK. Seems like its working like it should. validate_plus_continue Positive input (Valid): diff --git a/test/validate_check_imm.c b/test/validate_check_imm.c index 789cf70..48867f9 100644 --- a/test/validate_check_imm.c +++ b/test/validate_check_imm.c @@ -18,11 +18,17 @@ int main () { int ret = validate_check_imm(smode_buf); + if (ret == _IMM_NUMBER) { + printf("imm number\n"); + } if(ret == _INVALID) { printf("?\n"); } if(ret == _VALID) { - printf("valid plusonly\n"); + printf("valid\n"); + } + if(ret == _NA) { + printf("_NA\n"); } return 0; -- cgit v1.2.3