Intcode Processor Work
This commit is contained in:
parent
3722f044ff
commit
6c4a6187ff
14
2019/intcode-processor/processor_test.go
Normal file
14
2019/intcode-processor/processor_test.go
Normal file
@ -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)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user