# std.testing: Improve expectEqualBytes for large inputs and make expectEqualSlices use it · gitcafe/zig

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

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

Visibility: public

Requested revision: c37afa2811677b7602cdde8120049358c0d8c467

Requested commit: c37afa2811677b7602cdde8120049358c0d8c467

Commit: c37afa2811677b7602cdde8120049358c0d8c467

Tree: 816dd0512b72cb0b7a9806dd4cda242efe776292

Author: Ryan Liptak

Committer: Andrew Kelley

## Message

```
std.testing: Improve expectEqualBytes for large inputs and make expectEqualSlices use it

`expectEqualBytes` will now truncate the hexdump of each input to a maximum window of 256 bytes, which makes it safe to use for arbitrarily large inputs. Therefore, it can be used in `expectEqualSlices` when the type is u8.

```

## Parents

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

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