- Added a unittest for `findNextFree!(T)(T[] values)`
This commit is contained in:
Tristan B. Velloza Kildaire 2023-09-25 22:18:07 +02:00
parent 1986202309
commit 9fb143dfc9
1 changed files with 7 additions and 0 deletions

View File

@ -148,4 +148,11 @@ public T findNextFree(T)(T[] used) if(__traits(isIntegral, T))
return found;
}
}
unittest
{
ubyte[] values = [1,2,3];
ubyte free = findNextFree(values);
assert(isPresent(values, free) == false);
}