vm: support immutable compound types

This commit is contained in:
Anna Shaleva 2022-05-30 10:41:00 +03:00
parent 107f5e0793
commit 7296f0c913
10 changed files with 102 additions and 15 deletions

View file

@ -54,6 +54,7 @@ func TestRuntimeGetNotifications(t *testing.T) {
name, err := stackitem.ToString(elem[1])
require.NoError(t, err)
require.Equal(t, ic.Notifications[i].Name, name)
ic.Notifications[i].Item.MarkAsReadOnly() // tiny hack for test to be able to compare object references.
require.Equal(t, ic.Notifications[i].Item, elem[2])
}
})