diff options
| author | Linus Groh <mail@linusgroh.de> | 2023-05-20 22:30:02 +0100 |
|---|---|---|
| committer | Linus Groh <mail@linusgroh.de> | 2023-05-24 10:15:02 +0100 |
| commit | 39c2eee285f820282dedba4404cac1009a5ae2d6 (patch) | |
| tree | 1f36e2df6d7fa82e24f1f44c8f465a09c6c7f9a7 /lib/std/testing.zig | |
| parent | 16dbb960fc8dada79cd42dd2ba1ebf0f66ccaaec (diff) | |
| download | zig-39c2eee285f820282dedba4404cac1009a5ae2d6.tar.gz zig-39c2eee285f820282dedba4404cac1009a5ae2d6.zip | |
std.debug: Rename TTY.Color enum values to snake case
Diffstat (limited to 'lib/std/testing.zig')
| -rw-r--r-- | lib/std/testing.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/std/testing.zig b/lib/std/testing.zig index 2857ebdbd3..8576ec0c83 100644 --- a/lib/std/testing.zig +++ b/lib/std/testing.zig @@ -387,9 +387,9 @@ fn SliceDiffer(comptime T: type) type { for (self.expected, 0..) |value, i| { var full_index = self.start_index + i; const diff = if (i < self.actual.len) !std.meta.eql(self.actual[i], value) else true; - if (diff) try self.ttyconf.setColor(writer, .Red); + if (diff) try self.ttyconf.setColor(writer, .red); try writer.print("[{}]: {any}\n", .{ full_index, value }); - if (diff) try self.ttyconf.setColor(writer, .Reset); + if (diff) try self.ttyconf.setColor(writer, .reset); } } }; @@ -427,9 +427,9 @@ const BytesDiffer = struct { } fn writeByteDiff(self: BytesDiffer, writer: anytype, comptime fmt: []const u8, byte: u8, diff: bool) !void { - if (diff) try self.ttyconf.setColor(writer, .Red); + if (diff) try self.ttyconf.setColor(writer, .red); try writer.print(fmt, .{byte}); - if (diff) try self.ttyconf.setColor(writer, .Reset); + if (diff) try self.ttyconf.setColor(writer, .reset); } const ChunkIterator = struct { |
