Isn't this unittest in `std.algorithm`?