public async Task PyListReadInt32() { var list = PyList.Create(); var stored = PyInteger.Create(1); PyListClass.append(list, stored); var read = await SubscriptHelper.LoadSubscript(interpreter, context, list, 0); Assert.That(read, Is.EqualTo(stored)); }
public async Task PyListWriteInt32() { var list = PyList.Create(); var stored = PyInteger.Create(1); PyListClass.append(list, stored); await SubscriptHelper.StoreSubscript(interpreter, context, list, 0, PyInteger.Create(2)); Assert.That(list.list[0], Is.EqualTo(PyInteger.Create(2))); }