diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-10-28 00:40:07 +0100 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2026-02-08 12:42:26 +0100 |
| commit | f63c2094784849ab1ebe1688558e90410af83152 (patch) | |
| tree | d92d1dc0bce5c0753340535f5349c3c6b8731cff /tests | |
| parent | 1cbd60f40e974eead2b46bc5fdd732c6357dfdfb (diff) | |
Convert `core:encoding/hxa`
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/core/encoding/hxa/test_core_hxa.odin | 6 | ||||
| -rw-r--r-- | tests/core/normal.odin | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/tests/core/encoding/hxa/test_core_hxa.odin b/tests/core/encoding/hxa/test_core_hxa.odin index a8f3e94f6..7f495e161 100644 --- a/tests/core/encoding/hxa/test_core_hxa.odin +++ b/tests/core/encoding/hxa/test_core_hxa.odin @@ -9,17 +9,15 @@ import "core:testing" TEAPOT_PATH :: ODIN_ROOT + "tests/core/assets/HXA/teapot.hxa" -import "core:os" +import os "core:os/os2" @test test_read :: proc(t: ^testing.T) { - data, _ := os.read_entire_file(TEAPOT_PATH) - // file, err := hxa.read_from_file(TEAPOT_PATH) + data, _ := os.read_entire_file(TEAPOT_PATH, context.allocator) file, err := hxa.read(data) file.backing = data file.allocator = context.allocator hxa.file_destroy(file) - // fmt.printfln("%#v", file) e :: hxa.Read_Error.None testing.expectf(t, err == e, "read_from_file(%v) -> %v != %v", TEAPOT_PATH, err, e) diff --git a/tests/core/normal.odin b/tests/core/normal.odin index bb2e59f62..696510ac1 100644 --- a/tests/core/normal.odin +++ b/tests/core/normal.odin @@ -54,4 +54,4 @@ download_assets :: proc "contextless" () { @(require) import "text/regex" @(require) import "thread" @(require) import "time" -@(require) import "unicode" +@(require) import "unicode"
\ No newline at end of file |