From 6c4a6187ff2345b73129838a9bef390e667fc0b8 Mon Sep 17 00:00:00 2001 From: Brian Buller Date: Wed, 4 Dec 2019 10:43:01 -0600 Subject: [PATCH] Intcode Processor Work --- 2019/intcode-processor/processor_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 2019/intcode-processor/processor_test.go diff --git a/2019/intcode-processor/processor_test.go b/2019/intcode-processor/processor_test.go new file mode 100644 index 0000000..0aaf045 --- /dev/null +++ b/2019/intcode-processor/processor_test.go @@ -0,0 +1,14 @@ +package intcode + +import ( + "fmt" + "testing" +) + +func TestNewProgram(t *testing.T) { + want := fmt.Sprintf("%v", []int{1}) + p := NewProgram([]int{1}) + if got := p.CodeString(); got != want { + t.Errorf("Program.CodeString() = %q, want %q", got, want) + } +}