Simplify intrusive linked list test

This commit is contained in:
Andrea Orru 2018-03-10 12:20:29 -08:00
parent 6288ad865c
commit 152b408934

View File

@ -274,11 +274,10 @@ test "basic linked list test" {
assert (list.len == 2);
}
const link = "link";
const ElementList = IntrusiveLinkedList(Element, link);
const ElementList = IntrusiveLinkedList(Element, "link");
const Element = struct {
value: u32,
link: IntrusiveLinkedList(Element, link).Node,
link: IntrusiveLinkedList(Element, "link").Node,
};
test "basic intrusive linked list test" {