adventofcode2017/25/25_test.go
2017-12-27 22:08:03 +00:00

22 lines
306 B
Go

package main
import (
"testing"
)
var test = []instruction{
{"a", 0, 1, 1, "b"},
{"a", 1, 0, -1, "b"},
{"b", 0, 1, -1, "a"},
{"b", 1, 1, 1, "a"}}
func TestInstructions(t *testing.T) {
v := ProcessInstructions(test, 6)
if v != 3 {
t.Error(
"For", test,
"expected 3",
"got", v,
)
}
}