From 477038abe9b1c1a2e5074a865bd915d29906a72f Mon Sep 17 00:00:00 2001 From: Stevie Hryciw Date: Mon, 14 Nov 2022 15:52:04 -0800 Subject: [PATCH] test: observe and check note count in error output --- src/test.zig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/test.zig b/src/test.zig index 56abe248b3..08a62b891f 100644 --- a/src/test.zig +++ b/src/test.zig @@ -1723,7 +1723,8 @@ pub const TestContext = struct { (case_msg.src.column == std.math.maxInt(u32) or actual_msg.column == case_msg.src.column) and std.mem.eql(u8, expected_msg, actual_msg.msg) and - case_msg.src.kind == .note) + case_msg.src.kind == .note and + actual_msg.count == case_msg.src.count) { handled_errors[i] = true; break; @@ -1733,7 +1734,8 @@ pub const TestContext = struct { if (ex_tag != .plain) continue; if (std.mem.eql(u8, case_msg.plain.msg, plain.msg) and - case_msg.plain.kind == .note) + case_msg.plain.kind == .note and + case_msg.plain.count == plain.count) { handled_errors[i] = true; break;