From 4fd64e5d93f5f1b5732b8f69293e135fc42910e4 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 14 Jan 2019 19:27:44 +0100 Subject: LCLS: expand enc/dec tests Change-Id: I8ed87f26216104d34c7bd11c1527b203843760a2 --- tests/gsm0808/gsm0808_test.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests') diff --git a/tests/gsm0808/gsm0808_test.c b/tests/gsm0808/gsm0808_test.c index 40e2b87b..b3cab502 100644 --- a/tests/gsm0808/gsm0808_test.c +++ b/tests/gsm0808/gsm0808_test.c @@ -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(); -- cgit v1.2.3