Demonstration of testing Zig code with different types of memory allocation failure.
Tested with zig 0.7 (0.7.0+51717314e)
To run tests: zig build test
zig build test