~xenrox/aoc2021

ref: 777f9de1c97225faed0b9aeedc7e3b3bdafcdd52 aoc2021/day09/day09_test.go -rw-r--r-- 245 bytes
777f9de1Thorben Günther Solve day 9 part 1 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package day09

import "testing"

func Test1(t *testing.T) {
	res, err := calc1("../data/day09_test.dat")
	if err != nil {
		t.Errorf("error calculating: %v", err)
	}

	if res != 15 {
		t.Errorf("wrong result, expected %d, got %d", 15, res)
	}
}