From 8d55ea12f00c6d3d1cea2b02e353754d61e1b2db Mon Sep 17 00:00:00 2001 From: BlockChainDev Date: Wed, 27 Feb 2019 21:40:31 +0000 Subject: [PATCH] VM: removed helper functions from stack_test.go --- pkg/vm/stack/stack_test.go | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/pkg/vm/stack/stack_test.go b/pkg/vm/stack/stack_test.go index 05a192bcc..246e983f4 100644 --- a/pkg/vm/stack/stack_test.go +++ b/pkg/vm/stack/stack_test.go @@ -159,30 +159,3 @@ func TestStackInsert(t *testing.T) { assert.Equal(t, true, pop3.Equal(a)) } - -// helper functions -func testPeakInteger(t *testing.T, tStack *RandomAccess, n uint16) *Int { - stackElement, err := tStack.Peek(n) - assert.Nil(t, err) - item, err := stackElement.Integer() - if err != nil { - t.Fail() - } - return item -} - -func testPopInteger(t *testing.T, tStack *RandomAccess) *Int { - stackElement, err := tStack.Pop() - assert.Nil(t, err) - item, err := stackElement.Integer() - if err != nil { - t.Fail() - } - return item -} - -func testMakeStackInt(t *testing.T, num int64) *Int { - a, err := NewInt(big.NewInt(num)) - assert.Nil(t, err) - return a -}