Skip to content

Commit b9e4c6d

Browse files
committed
Added TODO for testing more invariants.
1 parent 2a5bc2e commit b9e4c6d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

s2/encode_fuzz_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ import (
88
)
99

1010
func FuzzDecodeCellUnion(f *testing.F) {
11-
cuCells := CellUnion([]CellID{
11+
cu := CellUnion([]CellID{
1212
CellID(0x33),
1313
CellID(0x8e3748fab),
1414
CellID(0x91230abcdef83427),
1515
})
1616
buf := new(bytes.Buffer)
17-
if err := cuCells.Encode(buf); err != nil {
17+
if err := cu.Encode(buf); err != nil {
1818
f.Errorf("error encoding %v: ", err)
1919
}
2020
f.Add(buf.Bytes())
@@ -28,5 +28,6 @@ func FuzzDecodeCellUnion(f *testing.F) {
2828
if got := c.ApproxArea(); got < 0 {
2929
t.Errorf("ApproxArea() = %v, want >= 0. CellUnion: %v", got, c)
3030
}
31+
// TODO: Test more invariants that should hold for all CellUnion.
3132
})
3233
}

0 commit comments

Comments
 (0)