diff --git a/functions/datascience/pivot_test.go b/functions/datascience/pivot_test.go index 891e74ad..54ec190b 100644 --- a/functions/datascience/pivot_test.go +++ b/functions/datascience/pivot_test.go @@ -23,13 +23,13 @@ func TestPivot(t *testing.T) { eu = r } } - if us["A"] != 10 { + if us["A"] != 10.0 { t.Errorf("US.A: got %v, want 10", us["A"]) } - if us["B"] != 20 { + if us["B"] != 20.0 { t.Errorf("US.B: got %v, want 20", us["B"]) } - if eu["A"] != 15 { + if eu["A"] != 15.0 { t.Errorf("EU.A: got %v, want 15", eu["A"]) } if eu["B"] != 0 { @@ -85,7 +85,7 @@ func TestPivot(t *testing.T) { if len(result) != 1 { t.Fatalf("got %d rows, want 1", len(result)) } - if result[0]["A"] != 42 { + if result[0]["A"] != 42.0 { t.Errorf("got %v, want 42", result[0]["A"]) } })