mirror of
https://github.com/ariejan/i6502.git
synced 2024-09-27 07:54:52 +00:00
18 lines
251 B
Go
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")
|
|
}
|
|
}
|