summary refs log tree commit diff stats
path: root/tests/errmsgs
diff options
context:
space:
mode:
authorArne Döring <arne.doering@gmx.net>2020-02-07 17:10:25 +0100
committerGitHub <noreply@github.com>2020-02-07 17:10:25 +0100
commitb2c6db97f9f477f6999fa9c7aae5e32f10b6b3fe (patch)
treedb2b5c35608cfab2dd81514c8bf0a7c643af3056 /tests/errmsgs
parentcdedb863488da74622aa1cbdf6e9e989dabd4145 (diff)
downloadNim-b2c6db97f9f477f6999fa9c7aae5e32f10b6b3fe.tar.gz
printing float values will have one more digit. (#13276) [backport]
* printing float values will have one more digit. Fixes #13196
Diffstat (limited to 'tests/errmsgs')
-rw-r--r--tests/errmsgs/tsigmatch.nim5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/errmsgs/tsigmatch.nim b/tests/errmsgs/tsigmatch.nim
index 21e2c217d..2e08e00d5 100644
--- a/tests/errmsgs/tsigmatch.nim
+++ b/tests/errmsgs/tsigmatch.nim
@@ -58,7 +58,7 @@ proc f(a1: string; a2: varargs[string]; a3: float; a4: var string)
   required type for a4: var string
   but expression '"bad"' is immutable, not 'var'
 
-expression: f("asdf", "1", "2", "3", "4", 2.3, "bad")
+expression: f("asdf", "1", "2", "3", "4", 2.25, "bad")
 tsigmatch.nim(164, 4) Error: type mismatch: got <string, a0: int literal(12)>
 but expected one of:
 proc f(x: string; a0: var int)
@@ -153,7 +153,7 @@ block:
   # sigmatch gets confused with param/arg position after varargs
   proc f(a1: int) = discard
   proc f(a1: string, a2: varargs[string], a3: float, a4: var string) = discard
-  f("asdf", "1", "2", "3", "4", 2.3, "bad")
+  f("asdf", "1", "2", "3", "4", 2.25, "bad")
 
 block:
   # bug: https://github.com/nim-lang/Nim/issues/11061#issuecomment-508970046
@@ -169,4 +169,3 @@ block:
   proc fun1(a1: MyInt, a2: Mystring) = discard
   proc fun1(a1: float, a2: Mystring) = discard
   fun1(Mystring.default, "asdf")
-