#where do std.mem.Allocator tests go?

1 messages · Page 1 of 1 (latest)

wary chasm
#

I believe I have fixed a bug in std.mem.Allocator, where should I add a test?

lunar oasis
#

what's the bug and how would it be tested?

wary chasm
lunar oasis
#

Does it cause a compileError or does it return an error?

wary chasm
#

a semantic error

lunar oasis
#

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

wary chasm
#

well the test would just be that it compiles

lunar oasis
#

oh so, currently it causes a compile error, but it shouldnt?

wary chasm
#

yep

lunar oasis
#

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

wary chasm
#

alright, thanks