From 6be27ad4b0e22404322e3c685d110cc8daebb078 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Mon, 12 Aug 2019 17:16:47 +0300 Subject: [PATCH] pkg/vm/stack: s,testPeakInteger,testPeakInteger, Fix obvious typo. --- pkg/vm/stack/stack_test.go | 4 ++-- pkg/vm/stack/test_helper.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/vm/stack/stack_test.go b/pkg/vm/stack/stack_test.go index 246e983f4..148931a5a 100644 --- a/pkg/vm/stack/stack_test.go +++ b/pkg/vm/stack/stack_test.go @@ -97,7 +97,7 @@ func TestStackPeekMutability(t *testing.T) { testStack.Push(a).Push(b) - peekedItem := testPeakInteger(t, testStack, 0) + peekedItem := testPeekInteger(t, testStack, 0) assert.Equal(t, true, peekedItem.Equal(b)) // Check that by modifying the peeked value, @@ -122,7 +122,7 @@ func TestStackPeek(t *testing.T) { // i starts at 0, j starts at len(values)-1 for i, j := 0, len(values)-1; j >= 0; i, j = i+1, j-1 { - peekedItem := testPeakInteger(t, testStack, uint16(i)) + peekedItem := testPeekInteger(t, testStack, uint16(i)) a := testMakeStackInt(t, values[j]) fmt.Printf("%#v\n", peekedItem.val.Int64()) diff --git a/pkg/vm/stack/test_helper.go b/pkg/vm/stack/test_helper.go index 29be378dd..d12bea71f 100644 --- a/pkg/vm/stack/test_helper.go +++ b/pkg/vm/stack/test_helper.go @@ -10,7 +10,7 @@ import ( ) // helper functions -func testPeakInteger(t *testing.T, tStack *RandomAccess, n uint16) *Int { +func testPeekInteger(t *testing.T, tStack *RandomAccess, n uint16) *Int { stackElement, err := tStack.Peek(n) assert.Nil(t, err) item, err := stackElement.Integer()