From 23074c7870a5db1c3021640f545546b748b913d2 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Sat, 11 Apr 2015 11:21:47 +0200 Subject: [PATCH] unittests: tests-ipv6_addr: test for long embedded ipv4 addresses --- tests/unittests/tests-ipv6_addr/tests-ipv6_addr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unittests/tests-ipv6_addr/tests-ipv6_addr.c b/tests/unittests/tests-ipv6_addr/tests-ipv6_addr.c index 7345369268..e7b86f4336 100644 --- a/tests/unittests/tests-ipv6_addr/tests-ipv6_addr.c +++ b/tests/unittests/tests-ipv6_addr/tests-ipv6_addr.c @@ -812,13 +812,13 @@ static void test_ipv6_addr_from_str__success5(void) static void test_ipv6_addr_from_str__success6(void) { ng_ipv6_addr_t a = { { - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0xff, 0xff, 192, 168, 0, 1 + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, 255, 255, 255, 255 } }; ng_ipv6_addr_t result; - TEST_ASSERT_NOT_NULL(ng_ipv6_addr_from_str(&result, "::ffff:192.168.0.1")); + TEST_ASSERT_NOT_NULL(ng_ipv6_addr_from_str(&result, "ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")); TEST_ASSERT(ng_ipv6_addr_equal(&a, &result)); }