(t *testing.T)
| 506 | } |
| 507 | |
| 508 | func 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 | |
| 521 | func TestCALLInstructionString(t *testing.T) { |
| 522 | var TABLE map[Instruction]string = map[Instruction]string{ |