File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -523,22 +523,20 @@ func TestNullsafeAdd(t *testing.T) {
523523 v1 : NewInt64 (- 1 ),
524524 v2 : NewUint64 (2 ),
525525 out : NewInt64 (- 9223372036854775808 ),
526- }, {
527- // Make sure underlying error is returned while converting.
528- v1 : NewFloat64 (1 ),
529- v2 : NewFloat64 (2 ),
530- out : NewInt64 (3 ),
531- }}
532- if runtime .GOARCH != "amd64" {
533526 // This test relies on float64 -> int64 conversion, where the float64 is larger than the maximum int64.
534527 // According to the Golang spec:
535528 //
536529 // > In all non-constant conversions involving floating-point or complex values, if the result
537530 // type cannot represent the value the conversion succeeds but the result value is implementation-dependent.
538531 //
539532 // And indeed, the test fails on arm64 but passes on amd64 because the computed conversion is different.
540- tcases [6 ].skip = true
541- }
533+ skip : runtime .GOARCH != "amd64" ,
534+ }, {
535+ // Make sure underlying error is returned while converting.
536+ v1 : NewFloat64 (1 ),
537+ v2 : NewFloat64 (2 ),
538+ out : NewInt64 (3 ),
539+ }}
542540 for _ , tcase := range tcases {
543541 if tcase .skip {
544542 t .SkipNow ()
You can’t perform that action at this time.
0 commit comments