1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
Description: Explicitly specify type to make the tests work on architectures
where int is not int64.
Forwarded: https://github.com/ghodss/yaml/pull/21
Bug-Debian: https://bugs.debian.org/860628
Author: Michael Stapelberg <stapelberg@debian.org>
---
Index: golang-github-ghodss-yaml/yaml_test.go
===================================================================
--- golang-github-ghodss-yaml.orig/yaml_test.go
+++ golang-github-ghodss-yaml/yaml_test.go
@@ -19,7 +19,7 @@ type MarshalTest struct {
func TestMarshal(t *testing.T) {
f32String := strconv.FormatFloat(math.MaxFloat32, 'g', -1, 32)
s := MarshalTest{"a", math.MaxInt64, math.MaxFloat32}
- e := []byte(fmt.Sprintf("A: a\nB: %d\nC: %s\n", math.MaxInt64, f32String))
+ e := []byte(fmt.Sprintf("A: a\nB: %d\nC: %s\n", int64(math.MaxInt64), f32String))
y, err := Marshal(s)
if err != nil {
|