LCLS: expand enc/dec tests

Change-Id: I8ed87f26216104d34c7bd11c1527b203843760a2
This commit is contained in:
Max 2019-01-14 19:27:44 +01:00
parent 6ad50aaebd
commit 4fd64e5d93
1 changed files with 12 additions and 0 deletions

View File

@ -720,6 +720,18 @@ static void test_enc_dec_lcls()
abort();
}
if (lcls_out.config != lcls_in.config) {
printf("LCLS Config parsed wrong: %s != %s\n",
gsm0808_lcls_config_name(lcls_out.config), gsm0808_lcls_config_name(lcls_in.config));
abort();
}
if (lcls_out.control != lcls_in.control) {
printf("LCLS Control parsed wrong: %s != %s\n",
gsm0808_lcls_control_name(lcls_out.control), gsm0808_lcls_control_name(lcls_in.control));
abort();
}
if (lcls_out.gcr->net_len != g.net_len) {
printf("Network ID length parsed wrong: %u != %u\n", lcls_out.gcr->net_len, g.net_len);
abort();