summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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;