MCPcopy Create free account
hub / github.com/DNAProject/DNA / TestXTuck

Function TestXTuck

vm/neovm/stack_opcode_test.go:479–485  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

477}
478
479func TestXTuck(t *testing.T) {
480 checkStackOpCode(t, XTUCK, []Value{3, 2, 1, 0, 0}, []Value{3, 2, 1, 0, 0})
481 checkStackOpCode(t, XTUCK, []Value{3, 2, 1, 0, 1}, []Value{3, 2, 1, 0, 0})
482 checkStackOpCode(t, XTUCK, []Value{3, 2, 1, 0, 2}, []Value{3, 2, 0, 1, 0})
483 checkStackOpCode(t, XTUCK, []Value{3, 2, 1, 0, 3}, []Value{3, 0, 2, 1, 0})
484 checkStackOpCode(t, XTUCK, []Value{3, 2, 1, 0, 4}, []Value{0, 3, 2, 1, 0})
485}
486
487func TestThrow(t *testing.T) {
488 checkStackOpCode(t, THROW, []Value{}, []Value{})

Callers

nothing calls this directly

Calls 1

checkStackOpCodeFunction · 0.85

Tested by

no test coverage detected