# Polish a few tests in switch.zig · gitcafe/zig

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

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

Visibility: public

Requested revision: 7cb227ab678b57dd10b65c1d9c89526a3e47cc2a

Requested commit: 7cb227ab678b57dd10b65c1d9c89526a3e47cc2a

Commit: 7cb227ab678b57dd10b65c1d9c89526a3e47cc2a

Tree: 90108180c74b258c7263f40a8e1ff1555cb0b814

Author: John Schmidt

Committer: John Schmidt

## Message

```
Polish a few tests in switch.zig

- Return `error.TestFailed` instead of panicing
- Use `comptime assert` for type checks so that errors surface at
  compile time

```

## Parents

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

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