fn expectEqualSlices(comptime T: type, expected: []const T, actual: []const T) !void

This function is intended to be used only in tests. When the two slices are not equal, prints diagnostics to stderr to show exactly how they are not equal (with the differences highlighted in red), then returns a test failure error. The colorized output is optional and controlled by the return of std.io.tty.detectConfig(). If your inputs are UTF-8 encoded strings, consider calling expectEqualStrings instead.

Parameters

T: type,
expected: []const T,
actual: []const T,