1
0
mirror of https://github.com/ariejan/i6502.git synced 2024-06-28 01:29:30 +00:00
i6502/cpu_test.go
Ariejan de Vroom 57b940dce1 Add NewCpu()
2014-08-12 21:28:30 +02:00

18 lines
251 B
Go

package i6502
import (
"testing"
)
func TestNewCpu(t *testing.T) {
cpu, err := NewCpu()
if err != nil {
t.Errorf("Expected NewCPU() to not raise an error")
}
if cpu == nil {
t.Errorf("Expected NewCPU() to create a new CPU instance")
}
}