]> Cypherpunks.ru repositories - gostls13.git/commit
test: adjust issue11371 to fit in required precision
authorIan Lance Taylor <iant@golang.org>
Tue, 15 Dec 2020 05:56:25 +0000 (21:56 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 15 Dec 2020 20:50:35 +0000 (20:50 +0000)
commit412dc2f4d330a519fb7c26e6ecb0f2bbcb876bbb
tree92136e339d67ee14c2c3a9f6c2931243ac7e797e
parent8e2d74b705ea669c7b5e56c81c59a350d5192352
test: adjust issue11371 to fit in required precision

The language spec only requires that floating point values be
represented with 256 bits, which is about 1e75. The issue11371 test
was assuming that the compiler could represent 1e100. Adjusting the
test so that it only assumes 256 bits of precision still keeps the
test valid, and permits it to pass when using the gofrontend.

Change-Id: I9d1006e9adc9438277f4b8002488c912e5d61cc1
Reviewed-on: https://go-review.googlesource.com/c/go/+/278116
Trust: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
test/fixedbugs/issue11371.go