From 9d2b4b2f03a30e296e55f0f5f9ce33e20303f55b Mon Sep 17 00:00:00 2001 From: Feoramund <161657516+Feoramund@users.noreply.github.com> Date: Sat, 10 Aug 2024 08:13:22 -0400 Subject: [PATCH] Simplify `core:bytes` test --- tests/core/bytes/test_core_bytes.odin | 90 +++++---------------------- 1 file changed, 17 insertions(+), 73 deletions(-) diff --git a/tests/core/bytes/test_core_bytes.odin b/tests/core/bytes/test_core_bytes.odin index 9074c0205..72390291f 100644 --- a/tests/core/bytes/test_core_bytes.odin +++ b/tests/core/bytes/test_core_bytes.odin @@ -1,45 +1,27 @@ package test_core_bytes import "core:bytes" +import "core:slice" import "core:testing" @test test_index_byte_sanity :: proc(t: ^testing.T) { // We must be able to find the byte at the correct index. - for n in 1..<256 { - data := make([]u8, n) - defer delete(data) - for i in 0..