refactor: extract grid abstraction for reuse

This commit is contained in:
Stevan Freeborn
2025-12-07 21:25:34 -06:00
parent d185ffda50
commit 4ca54ebb63
9 changed files with 418 additions and 131 deletions
+17
View File
@@ -0,0 +1,17 @@
package direction_test
import (
"testing"
"github.com/StevanFreeborn/advent-of-code-2025/cmd/01/direction"
)
func TestDirectionConstants(t *testing.T) {
if direction.Left != "L" {
t.Errorf("Expected Left to be 'L', got '%s'", direction.Left)
}
if direction.Right != "R" {
t.Errorf("Expected Right to be 'R', got '%s'", direction.Right)
}
}