fix: pivot_test comparaciones de tipo — sum retorna float64, no int

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-05 17:13:03 +02:00
parent 7605a5760a
commit 834e910bcf
+4 -4
View File
@@ -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"])
}
})