mirror of
https://github.com/onyx-and-iris/aoc2023.git
synced 2024-09-27 10:16:59 +01:00
20 lines
377 B
Go
20 lines
377 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/go-playground/assert"
|
||
|
)
|
||
|
|
||
|
func TestCompare(t *testing.T) {
|
||
|
//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())
|
||
|
})
|
||
|
}
|