patch 9.1.1325: tests: not checking error numbers properly
Problem: tests: not checking error numbers properly.
Solution: Add a trailing comma to avoid matching a different error
number with the same prefix (zeertzjq)
closes: #17159
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/testdir/test_blob.vim b/src/testdir/test_blob.vim
index a4a567d..addb395 100644
--- a/src/testdir/test_blob.vim
+++ b/src/testdir/test_blob.vim
@@ -240,13 +240,13 @@
VAR b1 = 0z0011
echo b1 == 9
END
- call v9.CheckLegacyAndVim9Failure(lines, ['E977:', 'E1072', 'E1072'])
+ call v9.CheckLegacyAndVim9Failure(lines, ['E977:', 'E1072:', 'E1072:'])
let lines =<< trim END
VAR b1 = 0z0011
echo b1 != 9
END
- call v9.CheckLegacyAndVim9Failure(lines, ['E977:', 'E1072', 'E1072'])
+ call v9.CheckLegacyAndVim9Failure(lines, ['E977:', 'E1072:', 'E1072:'])
let lines =<< trim END
VAR b1 = 0z0011