aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-02-20 15:14:03 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2018-02-22 06:04:14 +0100
commitb9fd7eba1558328802ae9dff79f708bd6ba7b10b (patch)
tree211cca110e48dd27dfbdf5f04cc060ad309e2ab9
parentc38b32dde94ae5547a11c4d59adb3510576300b0 (diff)
gsm0408_test: RA test: include min/max value cases
(Preparation for adding 3-digit MNC) Change-Id: Ifbc167de0cc039858112677b8d0cd14a2c8af086
-rw-r--r--tests/gsm0408/gsm0408_test.c12
-rw-r--r--tests/gsm0408/gsm0408_test.ok10
2 files changed, 22 insertions, 0 deletions
diff --git a/tests/gsm0408/gsm0408_test.c b/tests/gsm0408/gsm0408_test.c
index aa6a8be..ad45507 100644
--- a/tests/gsm0408/gsm0408_test.c
+++ b/tests/gsm0408/gsm0408_test.c
@@ -172,6 +172,18 @@ static struct gprs_ra_id test_ra_cap_items[] = {
.lac = 11,
.rac = 89,
},
+ {
+ .mcc = 0,
+ .mnc = 0,
+ .lac = 0,
+ .rac = 0,
+ },
+ {
+ .mcc = 999,
+ .mnc = 999,
+ .lac = 65535,
+ .rac = 255,
+ },
};
static void test_ra_cap(void)
diff --git a/tests/gsm0408/gsm0408_test.ok b/tests/gsm0408/gsm0408_test.ok
index a3d801d..dc19eea 100644
--- a/tests/gsm0408/gsm0408_test.ok
+++ b/tests/gsm0408/gsm0408_test.ok
@@ -12,3 +12,13 @@ Constructed RA:
MCC+MNC in BCD: 80 f4 89
084-98-11-89
RA test...passed
+Constructed RA:
+000-00-0-0
+MCC+MNC in BCD: 00 f0 00
+000-00-0-0
+RA test...passed
+Constructed RA:
+999-999-65535-255
+MCC+MNC in BCD: 99 99 99
+999-999-65535-255
+RA test...passed