aoc2023/day-13/one_test.go

20 lines
379 B
Go
Raw Permalink Normal View History

2023-12-14 03:44:14 +00:00
package main
import (
"testing"
"github.com/go-playground/assert"
)
2023-12-14 03:47:43 +00:00
func TestTranspose(t *testing.T) {
2023-12-14 03:44:14 +00:00
//t.Skip("skipping test")
img := newImg()
img.raw = []string{"#.##", "..#.", "##.."}
expected := []string{"#.#", "#..", ".##", "..#"}
t.Run("Should flip the image ninety degrees rightwards", func(t *testing.T) {
assert.Equal(t, expected, img.transposed())
})
}