mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-28 18:30:06 +00:00
Fix early join after start.
This commit is contained in:
@@ -60,26 +60,26 @@ test_temp_allocator_returns_correct_size :: proc(t: ^testing.T) {
|
||||
|
||||
@(test)
|
||||
test_init_cap_map_dynarray :: proc(t: ^testing.T) {
|
||||
m1 := make(map[int]string)
|
||||
defer delete(m1)
|
||||
testing.expect(t, cap(m1) == 0)
|
||||
testing.expect(t, m1.allocator.procedure == context.allocator.procedure)
|
||||
m1 := make(map[int]string)
|
||||
defer delete(m1)
|
||||
testing.expect(t, cap(m1) == 0)
|
||||
testing.expect(t, m1.allocator.procedure == context.allocator.procedure)
|
||||
|
||||
ally := context.temp_allocator
|
||||
m2 := make(map[int]string, ally)
|
||||
defer delete(m2)
|
||||
testing.expect(t, cap(m2) == 0)
|
||||
testing.expect(t, m2.allocator.procedure == ally.procedure)
|
||||
ally := context.temp_allocator
|
||||
m2 := make(map[int]string, ally)
|
||||
defer delete(m2)
|
||||
testing.expect(t, cap(m2) == 0)
|
||||
testing.expect(t, m2.allocator.procedure == ally.procedure)
|
||||
|
||||
d1 := make([dynamic]string)
|
||||
defer delete(d1)
|
||||
testing.expect(t, cap(d1) == 0)
|
||||
testing.expect(t, d1.allocator.procedure == context.allocator.procedure)
|
||||
d1 := make([dynamic]string)
|
||||
defer delete(d1)
|
||||
testing.expect(t, cap(d1) == 0)
|
||||
testing.expect(t, d1.allocator.procedure == context.allocator.procedure)
|
||||
|
||||
d2 := make([dynamic]string, ally)
|
||||
defer delete(d2)
|
||||
testing.expect(t, cap(d2) == 0)
|
||||
testing.expect(t, d2.allocator.procedure == ally.procedure)
|
||||
d2 := make([dynamic]string, ally)
|
||||
defer delete(d2)
|
||||
testing.expect(t, cap(d2) == 0)
|
||||
testing.expect(t, d2.allocator.procedure == ally.procedure)
|
||||
}
|
||||
|
||||
@(test)
|
||||
|
||||
Reference in New Issue
Block a user