-
Notifications
You must be signed in to change notification settings - Fork 0
/
3_test.go
43 lines (30 loc) 路 771 Bytes
/
3_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package main
import "testing"
func TestExampleD3P1(t *testing.T) {
expectation := 4361
result := d3p1("input/d3.example")
if result != expectation {
t.Errorf("Expected %d, got %d", expectation, result)
}
}
func TestInputD3P1(t *testing.T) {
expectation := 544664
result := d3p1("input/d3.input")
if result != expectation {
t.Errorf("Expected %d, got %d", expectation, result)
}
}
func TestExampleD3P2(t *testing.T) {
expectation := 467835
result := d3p2("input/d3.example")
if result != expectation {
t.Errorf("Expected %d, got %d", expectation, result)
}
}
func TestInputD3P2(t *testing.T) {
expectation := 84495585
result := d3p2("input/d3.input")
if result != expectation {
t.Errorf("Expected %d, got %d", expectation, result)
}
}