# lib/std/fs/test.zig: cleanup \(\#17443\) · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/57874ce619c098a4affd6804a71e0604ff3874c8)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 57874ce619c098a4affd6804a71e0604ff3874c8

Requested commit: 57874ce619c098a4affd6804a71e0604ff3874c8

Commit: 57874ce619c098a4affd6804a71e0604ff3874c8

Tree: d54550d2f14df5db035f4f1fdd5a80c0f36e3b0f

Author: Pat Tullmann

Committer: GitHub

## Message

```
lib/std/fs/test.zig: cleanup (#17443)

* fs/test.zig: use arena allocator more consistently

* fs/test.zig: remove unnecessary type information

Zig can (now?) implicitly cast a `&.{ "foo"}` when passed to
`fs.path.join()`, so the `[_][]const u8` is unnecessary.

* fs/test.zig: Use fs.path.join() for longer paths

Replace long path constructions (that use several "++ path_sep ++")
with a single call to `fs.path.join`.  Seems more readable to me.

* fs/test.zig: fmt
```

## Parents

- [54e7f58fcb8cd3fbfd1b1a3efd090c296b0e728b](https://git.cafe/gitcafe/zig/commit/54e7f58fcb8cd3fbfd1b1a3efd090c296b0e728b?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/57874ce619c098a4affd6804a71e0604ff3874c8?format=markdown)
