branlwyd / bdcpu16

DCPU-16 simulator based on version 1.7 of the DCPU-16 specification. See http://dcpu.com/.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

General: unit testing

branlwyd opened this issue · comments

Currently testing all of the instructions is tedious (and has not been done).

Create a unit test suite to rigorously test the functionality of the CPU. The areas of greatest concern are the arithmetic/shift operators, esp. when dealing with signed/unsigned & overflow/underflow semantics.

Ad-hoc testing has been done for many instructions, but getting good unit test coverage is still a really good idea.