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

Function TestAssertEqual

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

Source from the content-addressed store, hash-verified

469}
470
471func TestAssertEqual(t *testing.T) {
472 val1 := newVmValue(t, -12345678910)
473 buf, _ := val1.AsBytes()
474 val2 := newVmValue(t, buf)
475
476 assertEqual(t, val1, val2)
477}
478
479func TestXTuck(t *testing.T) {
480 checkStackOpCode(t, XTUCK, []Value{3, 2, 1, 0, 0}, []Value{3, 2, 1, 0, 0})

Callers

nothing calls this directly

Calls 3

newVmValueFunction · 0.85
assertEqualFunction · 0.85
AsBytesMethod · 0.80

Tested by

no test coverage detected