internal/store/cells_boundaries_test.go
Rama main · réplica de lectura del repositorio original.
package store
import "testing"
func TestAnEmptyCellListKeepsItsJSONShape(t *testing.T) {
encoded := cellsText(nil)
if encoded != "[]" {
t.Fatalf("cells = %q, want an empty JSON list", encoded)
}
if decoded := cellsOf(encoded); len(decoded) != 0 {
t.Fatalf("decoded cells = %v, want none", decoded)
}
}