There is already an existing project (albeit defunct) named j6502. Name changed to lm6502.
This commit is contained in:
1 parent
316d0feac6
commit
061eeba85c
8 files changed
+19
-22
No files matched your search
@@ -0,0 +1,32 @@
|
||||
package com.loomcom.lm6502;
|
||||
|
||||
import junit.framework.*;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public class CpuTest extends TestCase {
|
||||
|
||||
public CpuTest(String testName) {
|
||||
super(testName);
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
return new TestSuite(CpuTest.class);
|
||||
}
|
||||
|
||||
public void testCpu() {
|
||||
Cpu cpu = new Cpu(new Simulator());
|
||||
assertNotNull(cpu);
|
||||
}
|
||||
|
||||
public void testGetSimulator() {
|
||||
Simulator sim = new Simulator();
|
||||
Cpu cpu = new Cpu(sim);
|
||||
assertEquals(sim, cpu.getSimulator());
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.loomcom.lm6502;
|
||||
|
||||
import junit.framework.Test;
|
||||
import junit.framework.TestCase;
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
/**
|
||||
* Unit test for the j6502 Simulator class.
|
||||
*/
|
||||
public class SimulatorTest extends TestCase {
|
||||
/**
|
||||
* Create the test case
|
||||
*
|
||||
* @param testName name of the test case
|
||||
*/
|
||||
public SimulatorTest(String testName) {
|
||||
super(testName);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the suite of tests being tested
|
||||
*/
|
||||
public static Test suite() {
|
||||
return new TestSuite(SimulatorTest.class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rigourous Test :-)
|
||||
*/
|
||||
public void testSimulator() {
|
||||
assertTrue(true);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user