예제 #1
0
        public void testTuple()
        {
            String       statement = "(1,\"John\",'12:12:12')";
            ETestParser  parser    = new ETestParser(statement, false);
            TupleLiteral literal   = parser.parse_tuple_literal();

            Assert.IsNotNull(literal);
            ExpressionList list = ((TupleLiteral)literal).Expressions;

            Assert.AreEqual("1", list[0].ToString());
            Assert.AreEqual("\"John\"", list[1].ToString());
            Assert.AreEqual("'12:12:12'", list[2].ToString());
            Assert.AreEqual("1, \"John\", '12:12:12'", list.ToString());
        }