From fddc1e7239b24096832c0ae35eeb5e4197093d9f Mon Sep 17 00:00:00 2001 From: Egutierrez Date: Sun, 5 Apr 2026 17:13:03 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20pivot=5Ftest=20comparaciones=20de=20tipo?= =?UTF-8?q?=20=E2=80=94=20sum=20retorna=20float64,=20no=20int?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- functions/datascience/pivot_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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"]) } })