#where do std.mem.Allocator tests go?
1 messages · Page 1 of 1 (latest)
what's the bug and how would it be tested?
The bug is with .create for zero-sized values with an alignment greater than one. I want to add a test that just calls the function with a type that would cause the current compilation error it gives.
Does it cause a compileError or does it return an error?
a semantic error
there's no way to test that. if the change is simple enough and obvious enough, just posting some text that shows what the error message looks like will be sufficient
well the test would just be that it compiles
oh so, currently it causes a compile error, but it shouldnt?
yep
hmm, i guess the best place right now would be to put it into std.heap along with the other allocator tests.
like lib/std/heap.zig
alright, thanks