mirror of
https://github.com/hexagonal-sun/moss-kernel.git
synced 2025-12-23 22:47:55 -05: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.