add tuples tests
This commit is contained in:
parent
e03d18c7db
commit
94b12f28ab
3 changed files with 101 additions and 101 deletions
|
|
@ -2,6 +2,7 @@ package core
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"math/big"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
|
@ -615,6 +616,28 @@ func GetExecutionTestData() map[string]struct {
|
|||
},
|
||||
[]map[string]Value{},
|
||||
},
|
||||
"form_tuple": {
|
||||
&Chunk{
|
||||
Bytecode: []Bytecode{
|
||||
InstructionConstant, 0,
|
||||
InstructionConstant, 1,
|
||||
InstructionFormTuple, 0, 2,
|
||||
},
|
||||
Constants: []Value{
|
||||
&IntegerValue{big.NewInt(1)},
|
||||
&IntegerValue{big.NewInt(2)},
|
||||
},
|
||||
},
|
||||
[]Value{
|
||||
&TupleValue{
|
||||
Items: []Value{
|
||||
&IntegerValue{big.NewInt(1)},
|
||||
&IntegerValue{big.NewInt(2)},
|
||||
},
|
||||
},
|
||||
},
|
||||
[]map[string]Value{},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue