summary refs log tree commit diff stats
path: root/tests/errmsgs/tsigmatch.nim
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2020-02-08 00:30:24 -0800
committerGitHub <noreply@github.com>2020-02-08 09:30:24 +0100
commite4415422fe2b615a6dfe01bb7136ec41ef429108 (patch)
tree8e9f45c193aad54fa60c79cdc8e5f1981cea04cf /tests/errmsgs/tsigmatch.nim
parentf3117d350ea245769d60a80b2d12b062cff4b8ff (diff)
downloadNim-e4415422fe2b615a6dfe01bb7136ec41ef429108.tar.gz
Revert "printing float values will have one more digit. (#13276) [backport]" (#13363)
This reverts commit b2c6db97f9f477f6999fa9c7aae5e32f10b6b3fe.
Diffstat (limited to 'tests/errmsgs/tsigmatch.nim')
-rw-r--r--tests/errmsgs/tsigmatch.nim5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/errmsgs/tsigmatch.nim b/tests/errmsgs/tsigmatch.nim
index 2e08e00d5..21e2c217d 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.25, "bad")
+expression: f("asdf", "1", "2", "3", "4", 2.3, "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.25, "bad")
+  f("asdf", "1", "2", "3", "4", 2.3, "bad")
 
 block:
   # bug: https://github.com/nim-lang/Nim/issues/11061#issuecomment-508970046
@@ -169,3 +169,4 @@ block:
   proc fun1(a1: MyInt, a2: Mystring) = discard
   proc fun1(a1: float, a2: Mystring) = discard
   fun1(Mystring.default, "asdf")
+