diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2026-02-12 10:48:26 +0100 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2026-02-12 10:48:26 +0100 |
| commit | 97683ae0146e6668d56e701c1d54a4e1737e41c8 (patch) | |
| tree | 9762dbd861da8df49e390dd8908dae840ea44334 /tests | |
| parent | b18f75c41c4a78c1e368908ee0bfbba8efa1c494 (diff) | |
Simplify
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/core/os/file.odin | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/core/os/file.odin b/tests/core/os/file.odin index aed57c26c..99ae5b928 100644 --- a/tests/core/os/file.odin +++ b/tests/core/os/file.odin @@ -5,10 +5,9 @@ import "core:testing" @(test) test_clone :: proc(t: ^testing.T) { - joined, err := os.join_path({#directory, "file.odin"}, context.temp_allocator) - testing.expect_value(t, err, nil) - f: ^os.File - f, err = os.open(joined) + joined, j_err := os.join_path({#directory, "file.odin"}, context.temp_allocator) + testing.expect_value(t, j_err, nil) + f, err := os.open(joined) testing.expect_value(t, err, nil) testing.expect(t, f != nil) |