Пример #1
0
func TestSet(t *testing.T) {
	for testInd, tt := range tests {
		tt.Reg = append(tt.Reg, make([]uint64, RegCount)...)
		tt.Mem = append(tt.Mem, make([]byte, 2*65536)...)
		e := new(Emulator)
		emu.RunTest(testInd, t, e, tt)
	}
}
Пример #2
0
func TestProxyEmulator(t *testing.T) {
	for testInd, tt := range tests {
		tt.Reg = append(tt.Reg, make([]uint64, RegCount)...)
		tt.Mem = append(tt.Mem, make([]byte, 65536)...)
		e, err := NewProxyEmulator()
		if err != nil {
			t.Fatalf("NewProxyEmulator: %v", err)
		}
		emu.RunTest(testInd, t, e, tt)
	}
}