vm: serialize zero Integer to an empty ByteArray

This commit is contained in:
Evgenii Stratonikov 2020-04-15 17:02:45 +03:00
parent 5dba30a49d
commit 93d2a3e031
3 changed files with 7 additions and 4 deletions

View file

@ -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) {