From 632fa1535cfd1f7f7dc485a8f1b9faee6517d41d Mon Sep 17 00:00:00 2001 From: dimgigov Date: Wed, 10 Jun 2026 00:28:18 +0300 Subject: [PATCH] fix(test): update wrong-args error message expectation --- tests/sema_test.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sema_test.nim b/tests/sema_test.nim index 70d2cd8..1d00885 100644 --- a/tests/sema_test.nim +++ b/tests/sema_test.nim @@ -43,7 +43,7 @@ suite "Sema": test "wrong number of arguments": let res = checkSource("func Add(a: int32, b: int32) -> int32 { return a + b; } func Main() -> int { return Add(1); }") check res.hasErrors - check "expected 2 arguments" in res.diagnostics[0].message + check "missing argument for parameter 'b'" in res.diagnostics[0].message test "wrong argument type": let res = checkSource("func Add(a: int32, b: int32) -> int32 { return a + b; } func Main() -> int { return Add(c8\"a\", 2); }")