MCPcopy Create free account
hub / github.com/djhworld/simple-computer / TestMultiply

Function TestMultiply

cpu/cpu_test.go:896–905  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

894}
895
896func TestMultiply(t *testing.T) {
897 ClearMem()
898 testMultiply(0, 0, t)
899 testMultiply(1, 1, t)
900 testMultiply(1, 2, t)
901 testMultiply(2, 1, t)
902 testMultiply(5, 5, t)
903 testMultiply(8, 12, t)
904 testMultiply(19, 13, t)
905}
906
907func testMultiply(inputA, inputB uint16, t *testing.T) {
908 c := SetUpCPU()

Callers

nothing calls this directly

Calls 2

ClearMemFunction · 0.85
testMultiplyFunction · 0.85

Tested by

no test coverage detected