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

Function TestCLFInstructionString

asm/instructions_test.go:508–519  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

506}
507
508func TestCLFInstructionString(t *testing.T) {
509 var TABLE map[Instruction]string = map[Instruction]string{
510 CLF{}: "CLF",
511 }
512
513 for ins, expected := range TABLE {
514 if ins.String() != expected {
515 t.Logf("Expected %s got %s when testing %s", expected, ins.String(), ins)
516 t.FailNow()
517 }
518 }
519}
520
521func TestCALLInstructionString(t *testing.T) {
522 var TABLE map[Instruction]string = map[Instruction]string{

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected