# std.testing: add writeZigFile for TmpDir · gitcafe/zig

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

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

Visibility: public

Requested revision: 7f13f5cd5f5a518638b15d7225eae2d88ec1efb5

Requested commit: 7f13f5cd5f5a518638b15d7225eae2d88ec1efb5

Commit: 7f13f5cd5f5a518638b15d7225eae2d88ec1efb5

Tree: 2b63e2c8ed35d36671c5a8380e2ea290b4b5395b

Author: matu3ba

Committer: GitHub

## Message

```
std.testing: add writeZigFile for TmpDir

* remove need for manual string concatenation for building binaries in test blocks
* include small program snippet to show how to get binary path with subslicing

```

## Parents

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

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