mirror of
https://github.com/hexagonal-sun/moss-kernel.git
synced 2026-04-18 22:28:16 -04:00
The `expand` function adds bytes size into the region; the check `size >= self.size` isn't needed since this is an expanding function, not a resizing one. To emphasise that, rename the function to `expand_by`. Also include a bunch of unit tests to ensure that expansion by regions with differing sizes works correctly.