summary refs log tree commit diff stats
path: root/tests/objects
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/objects
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/objects')
-rw-r--r--tests/objects/t12753.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/objects/t12753.nim b/tests/objects/t12753.nim
index 1009433be..dc55243d2 100644
--- a/tests/objects/t12753.nim
+++ b/tests/objects/t12753.nim
@@ -1,7 +1,7 @@
 discard """
   output: '''
-(v: [(v: [0.0, 1.1]), (v: [2.2, 3.3])])
-(v: [(v: [0.0, 1.1]), (v: [2.2, 3.3])])
+(v: [(v: [0.0, 1.125]), (v: [2.25, 3.375])])
+(v: [(v: [0.0, 1.125]), (v: [2.25, 3.375])])
 '''
 """
 
@@ -13,7 +13,7 @@ type
 
 var
   a = M(v:[ V(v:[0.0,1.0]), V(v:[2.0,3.0]) ])
-  b = M(v:[ V(v:[0.0,0.1]), V(v:[0.2,0.3]) ])
+  b = M(v:[ V(v:[0.0,0.125]), V(v:[0.25,0.375]) ])
 
 echo M(v: [V(v: [b.v[0].v[0] + a.v[0].v[0], b.v[0].v[1] + a.v[0].v[1]]),
        V(v: [b.v[1].v[0] + a.v[1].v[0], b.v[1].v[1] + a.v[1].v[1]])])