summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOskar <>2024-03-22 19:56:34 +0100
committerOskar <>2024-03-22 19:56:34 +0100
commit3bb6a5a525bc3edbf853c9f557486fb12081840a (patch)
treeeaf4dece2b6f6c036dbcbd630679bfee1ddcb1b3 /test
parenteb0556f79fec4b7faaa374c702aa78bceb089334 (diff)
vcimm tested, some invalid checks are let through but thats out of scope for this function. It will be checked for in other functions.
Diffstat (limited to 'test')
-rw-r--r--test/testcases/i_validation_cases.txt17
-rw-r--r--test/validate_check_imm.c8
2 files changed, 24 insertions, 1 deletions
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;