add comment to test structure

This commit is contained in:
David Christofas
2020-03-24 11:05:08 +01:00
committed by GitHub
parent 3daf985f4c
commit eb820e1ab7

View File

@@ -85,6 +85,7 @@ func TestClosestMatchWithEmptyResolutions(t *testing.T) {
func TestClosestMatch(t *testing.T) {
rs, _ := Init([]string{"16x16", "24x24", "32x32", "64x64", "128x128"})
table := [][]int{
// width, height, expectedWidth, expectedHeight
[]int{17, 17, 24, 24},
[]int{12, 17, 24, 24},
[]int{24, 24, 24, 24},