mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-26 23:11:19 +01:00
ng_netif: more tests for ng_netif_addr_from_str
This commit is contained in:
parent
d56064e9b8
commit
64e0b8d8fb
@ -208,6 +208,30 @@ static void test_ng_netif_addr_from_str__ill_formated3(void)
|
||||
TEST_ASSERT_EQUAL_INT(0, ng_netif_addr_from_str(out, sizeof(out), str));
|
||||
}
|
||||
|
||||
static void test_ng_netif_addr_from_str__ill_formated4(void)
|
||||
{
|
||||
char str[] = "05:c";
|
||||
uint8_t out[sizeof(str)];
|
||||
|
||||
TEST_ASSERT_EQUAL_INT(0, ng_netif_addr_from_str(out, sizeof(out), str));
|
||||
}
|
||||
|
||||
static void test_ng_netif_addr_from_str__ill_formated5(void)
|
||||
{
|
||||
char str[] = "5:cd";
|
||||
uint8_t out[sizeof(str)];
|
||||
|
||||
TEST_ASSERT_EQUAL_INT(0, ng_netif_addr_from_str(out, sizeof(out), str));
|
||||
}
|
||||
|
||||
static void test_ng_netif_addr_from_str__ill_formated6(void)
|
||||
{
|
||||
char str[] = "05:cd:";
|
||||
uint8_t out[sizeof(str)];
|
||||
|
||||
TEST_ASSERT_EQUAL_INT(0, ng_netif_addr_from_str(out, sizeof(out), str));
|
||||
}
|
||||
|
||||
static void test_ng_netif_addr_from_str__success(void)
|
||||
{
|
||||
char str[] = "05:cd";
|
||||
@ -237,6 +261,9 @@ Test *tests_netif_tests(void)
|
||||
new_TestFixture(test_ng_netif_addr_from_str__ill_formated1),
|
||||
new_TestFixture(test_ng_netif_addr_from_str__ill_formated2),
|
||||
new_TestFixture(test_ng_netif_addr_from_str__ill_formated3),
|
||||
new_TestFixture(test_ng_netif_addr_from_str__ill_formated4),
|
||||
new_TestFixture(test_ng_netif_addr_from_str__ill_formated5),
|
||||
new_TestFixture(test_ng_netif_addr_from_str__ill_formated6),
|
||||
new_TestFixture(test_ng_netif_addr_from_str__success),
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user