[riot-notifications] [RIOT-OS/RIOT] sys/net/dhcpv6: Refactor IA_NA implementation (#16724)

Martine Lenders notifications at github.com
Thu Aug 12 09:51:16 CEST 2021


@miri64 commented on this pull request.



> +    result = [
+        (addr, prefix) for addr, prefix in test_data if test_function(addr, prefix)
+    ]
+    assert len(result) == 1

Alternatively, if you want to keep the dict structure

```py
assert check_ia_na_addr(**test_data[0]) or \
       check_ia_pd_addr(**test_data[0])
assert check_ia_na_addr(**test_data[1]) or \
       check_ia_pd_addr(**test_data[1])
```

would also work for me.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16724#discussion_r687473624
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210812/73d631cd/attachment-0001.htm>


More information about the notifications mailing list