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:
@@ -23,13 +23,13 @@ func TestPivot(t *testing.T) {
|
|||||||
eu = r
|
eu = r
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if us["A"] != 10 {
|
if us["A"] != 10.0 {
|
||||||
t.Errorf("US.A: got %v, want 10", us["A"])
|
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"])
|
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"])
|
t.Errorf("EU.A: got %v, want 15", eu["A"])
|
||||||
}
|
}
|
||||||
if eu["B"] != 0 {
|
if eu["B"] != 0 {
|
||||||
@@ -85,7 +85,7 @@ func TestPivot(t *testing.T) {
|
|||||||
if len(result) != 1 {
|
if len(result) != 1 {
|
||||||
t.Fatalf("got %d rows, want 1", len(result))
|
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"])
|
t.Errorf("got %v, want 42", result[0]["A"])
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user