From 21cc370c14594dcad6d8998ab6970bdf577656df Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Tue, 26 Sep 2023 14:42:09 +0200 Subject: [PATCH] Utils - Added missing documentation --- source/doap/utils.d | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/doap/utils.d b/source/doap/utils.d index 5a09a57..f78a45a 100644 --- a/source/doap/utils.d +++ b/source/doap/utils.d @@ -131,6 +131,9 @@ public bool isPresent(T)(T[] array, T value) } } +/** + * Tests the `isPresent!(T)(T[], T)` function + */ unittest { ubyte[] values = [1,2,3]; @@ -170,6 +173,9 @@ public T findNextFree(T)(T[] used) if(__traits(isIntegral, T)) } } +/** + * Tests the `findNextFree!(T)(T[])` function + */ unittest { ubyte[] values = [1,2,3];