Esempio n. 1
0
        public void TestIndex()
        {
            var t1 = new PyString("FooBar");

            Assert.AreEqual(4, t1.Index32(new PyString("a")));
            Assert.AreEqual(5L, t1.Index64(new PyString("r")));
            Assert.AreEqual(-(nint)1, t1.Index(new PyString("z")));
        }