Skip to content

Commit

Permalink
Unit tests: channel function tests updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarkko Paso committed Sep 6, 2018
1 parent b6236f9 commit 42b2e7c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions test/nanostack/unittest/6LoWPAN/ws_ie_lib/test_ws_ie_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,14 @@ bool test_ws_wp_nested_hopping_schedule_length()
}

shedule.channel_plan = 1;
shedule.channel_function = 1;
shedule.uc_channel_function = 1;
length = ws_wp_nested_hopping_schedule_length(&shedule, true);
if (length != 4 + 6)
{
return false;
}
shedule.channel_plan = 2;
shedule.channel_function = 3;
shedule.uc_channel_function = 3;

length = ws_wp_nested_hopping_schedule_length(&shedule, true);
if (length != 6)
Expand Down Expand Up @@ -168,14 +168,14 @@ bool test_ws_wp_nested_hopping_schedule_write()
}

shedule.channel_plan = 1;
shedule.channel_function = 1;
shedule.uc_channel_function = 1;
ptr = ws_wp_nested_hopping_schedule_write(temp_buf, &shedule, true);
if (ptr != temp_buf + 10 + 2) {
return false;
}

shedule.channel_plan = 2;
shedule.channel_function = 3;
shedule.uc_channel_function = 3;
ptr = ws_wp_nested_hopping_schedule_write(temp_buf, &shedule, false);
if (ptr != temp_buf + 10 + 2 + 2) {
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,29 +225,29 @@ bool test_ws_management_fhss_channel_function_configure()

protocol_core_stub.entry_ptr = NULL;

if (-1 != ws_management_fhss_channel_function_configure(1,10))
if (-1 != ws_management_fhss_unicast_channel_function_configure(1,10))
{
return false;
}
protocol_core_stub.entry_ptr = &entry;

if (-1 != ws_management_fhss_channel_function_configure(1,10))
if (-1 != ws_management_fhss_unicast_channel_function_configure(1,10))
{
return false;
}
entry.ws_info = &ws_info_entry;
if (-2 != ws_management_fhss_channel_function_configure(1,10))
if (-2 != ws_management_fhss_unicast_channel_function_configure(1,10))
{
return false;
}

entry.lowpan_info = 0;
if (0 != ws_management_fhss_channel_function_configure(1,0))
if (0 != ws_management_fhss_unicast_channel_function_configure(1,0))
{
return false;
}
entry.lowpan_info = INTERFACE_NWK_ACTIVE;
if (0 != ws_management_fhss_channel_function_configure(1,0))
if (0 != ws_management_fhss_unicast_channel_function_configure(1,0))
{
return false;
}
Expand Down

0 comments on commit 42b2e7c

Please sign in to comment.