vm: serialize zero Integer to an empty ByteArray
This commit is contained in:
parent
5dba30a49d
commit
93d2a3e031
3 changed files with 7 additions and 4 deletions
|
@ -2213,7 +2213,7 @@ func TestCATInt0ByteArray(t *testing.T) {
|
|||
vm.estack.PushVal([]byte{})
|
||||
runVM(t, vm)
|
||||
assert.Equal(t, 1, vm.estack.Len())
|
||||
assert.Equal(t, &ByteArrayItem{[]byte{0}}, vm.estack.Pop().value)
|
||||
assert.Equal(t, &ByteArrayItem{[]byte{}}, vm.estack.Pop().value)
|
||||
}
|
||||
|
||||
func TestCATByteArrayInt1(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue