1
0
mirror of https://github.com/ariejan/i6502.git synced 2024-06-10 01:29:33 +00:00
i6502/cpu_test.go

18 lines
251 B
Go
Raw Normal View History

2014-08-12 19:28:30 +00:00
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")
}
}