Ejemplo n.º 1
0
        public void LongString()
        {
            var      context = new MockContext("\"\"\"Hello\"\"\"");
            PyString result  = ConstantsFactory.CreateString(context);

            Assert.That(result, Is.EqualTo(PyString.Create("Hello")));
        }
Ejemplo n.º 2
0
        public void BasicSingleQuoteString()
        {
            var      context = new MockContext("'Hello'");
            PyString result  = ConstantsFactory.CreateString(context);

            Assert.That(result, Is.EqualTo(PyString.Create("Hello")));
        }
Ejemplo n.º 3
0
 public void Bools()
 {
     Assert.That(ConstantsFactory.CreateBool(new MockContext("True")), Is.EqualTo(PyBool.True));
     Assert.That(ConstantsFactory.CreateBool(new MockContext("False")), Is.EqualTo(PyBool.False));
 }