aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2026-02-12 10:48:26 +0100
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2026-02-12 10:48:26 +0100
commit97683ae0146e6668d56e701c1d54a4e1737e41c8 (patch)
tree9762dbd861da8df49e390dd8908dae840ea44334 /tests
parentb18f75c41c4a78c1e368908ee0bfbba8efa1c494 (diff)
Simplify
Diffstat (limited to 'tests')
-rw-r--r--tests/core/os/file.odin7
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)