Skip to content

Commit

Permalink
squash
Browse files Browse the repository at this point in the history
  • Loading branch information
holiman committed Jun 8, 2023
1 parent 9e01650 commit 57fbf17
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions core/vm/instructions_test.go
Expand Up @@ -852,6 +852,12 @@ func TestOpMCopy(t *testing.T) {
dst: "0x10000000000000000", src: "0x0", len: "0x1",
pre: "0",
},
{ // MCOPY - copy nothing from 0 to space outside of uint64
dst: "0x10000000000000000", src: "0x0", len: "0x0",
pre: "",
want: "",
wantGas: 3,
},
{ // MCOPY - copy 1 from 0x20 to 0x10, with no prior allocated mem
dst: "0x10", src: "0x20", len: "0x1",
pre: "",
Expand All @@ -864,7 +870,7 @@ func TestOpMCopy(t *testing.T) {
pre: "",
// 32 bytes
want: "0x0000000000000000000000000000000000000000000000000000000000000000",
wantGas: 12,
wantGas: 9,
},
} {
var (
Expand Down Expand Up @@ -909,7 +915,6 @@ func TestOpMCopy(t *testing.T) {
}
// Expand mem
if memorySize > 0 {
fmt.Printf("Expanding to %d\n", memorySize)
mem.Resize(memorySize)
}
// Do the copy
Expand Down

0 comments on commit 57fbf17

Please sign in to comment.