# Tidy-up in json test module \(\#8431\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 7302b096bd6e4274080eab051f6f3e1ab49213b9

Requested commit: 7302b096bd6e4274080eab051f6f3e1ab49213b9

Commit: 7302b096bd6e4274080eab051f6f3e1ab49213b9

Tree: 0f9f8178bf508a86967f436efc3fa95de08c4330

Author: Lewis Gaul

Committer: GitHub

## Message

```
Tidy-up in json test module (#8431)

* Switch json testing 'roundTrip()' to use FixedBufferStream, improve error handling, remove comptime from param

* Add 'try' to calls to roundTrip() that can now return an error

* Remove comptime from params in json testing, replace expect(false) with letting error propagate

* Add 'try' to calls to ok() that can now return an error

Co-authored-by: Lewis Gaul <legaul@cisco.com>
```

## Parents

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

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