From bde9abb2f729e880b2110f890196a48c4eab8259 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Sat, 25 Mar 2023 09:45:01 +0800 Subject: [PATCH] fixes tests --- tests/constructors/t5965_1.nim | 6 ++++++ tests/constructors/t5965_2.nim | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/constructors/t5965_1.nim b/tests/constructors/t5965_1.nim index b4f496941f..374b7aa0d7 100644 --- a/tests/constructors/t5965_1.nim +++ b/tests/constructors/t5965_1.nim @@ -1,3 +1,9 @@ +discard """ + errormsg: "When mixing named fields and unnamed fields, every field needs to be initialized in order" + file: "t5965_1.nim" + line: 10 +""" + type Foo = object a, b, c: int diff --git a/tests/constructors/t5965_2.nim b/tests/constructors/t5965_2.nim index e04f1b7157..6627cfeafb 100644 --- a/tests/constructors/t5965_2.nim +++ b/tests/constructors/t5965_2.nim @@ -1,5 +1,5 @@ discard """ - errormsg: "incorrect object construction syntax" + errormsg: "The object construction is given more fields than required" file: "t5965_2.nim" line: 10 """