# std/fs/test.zig: Add test for renaming a dir onto an empty dir · gitcafe/zig

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

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

Visibility: public

Requested revision: 17daba1806896a2e45a2c1b1969a540f44a64d86

Requested commit: 17daba1806896a2e45a2c1b1969a540f44a64d86

Commit: 17daba1806896a2e45a2c1b1969a540f44a64d86

Tree: fa6f33e5d4615acc33db6b59f5a680605055e7f2

Author: Ryan Liptak

Committer: Andrew Kelley

## Message

```
std/fs/test.zig: Add test for renaming a dir onto an empty dir

Also split the Dir.rename on directories test into 3 tests:
- General rename of a directory
- Rename of a directory onto an existing empty directory
- Rename of a directory onto an existing non-empty directory

The only new case is the rename onto an existing empty directory, but splitting the tests this way made them much more understandable.

```

## Parents

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

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