summaryrefslogtreecommitdiff
path: root/2023/go/internal/day_01/day_01_test.go
diff options
context:
space:
mode:
authorDJ O'Leary <dijitol@proton.me>2026-06-26 18:04:09 +0200
committerDJ O'Leary <dijitol@proton.me>2026-06-26 18:04:09 +0200
commit6d8fb621d1e93b83786890d6d9cb6f0d8defa8ae (patch)
tree17c90d3984c114aa023600cc5bec6f6004b02243 /2023/go/internal/day_01/day_01_test.go
parentad4ea5ca4bc9f7540ee1d6a4fa2d881709dc6459 (diff)
refactor!: invert repo directory structure
now is language first
Diffstat (limited to '2023/go/internal/day_01/day_01_test.go')
-rw-r--r--2023/go/internal/day_01/day_01_test.go31
1 files changed, 0 insertions, 31 deletions
diff --git a/2023/go/internal/day_01/day_01_test.go b/2023/go/internal/day_01/day_01_test.go
deleted file mode 100644
index 8063619..0000000
--- a/2023/go/internal/day_01/day_01_test.go
+++ /dev/null
@@ -1,31 +0,0 @@
-package day_01
-
-import (
- "testing"
-)
-
-type input string
-type answer string
-
-func TestFindNumbers(t *testing.T) {
- data := map[input]answer{
- "1abc2": "12",
- "pqr3stu8vwx": "38",
- "a1b2c3d4e5f": "15",
- "treb7uchet": "77",
- }
-
- for input, expected := range data {
- actual_first, actual_last, err := findNumbers(string(input))
-
- if err != nil {
- t.Error("find_numbers returned an error")
- }
-
- actual := actual_first + actual_last
-
- if actual != string(expected) {
- t.Errorf("Expected %s, got %s", expected, actual)
- }
- }
-}