public void GetStatementResulTypetDoubleTest()
        {
            var lhs = new LiteralNode(Location.Empty, "10.0", QValueType.Double);
            var rhs = new LiteralNode(Location.Empty, "5.0", QValueType.Double);

            Assert.AreEqual(QValueType.Double, StatementTypeEvaluator.GetStatementResultType(lhs, rhs));
        }
        public void GetStatementResultTypeIntTest()
        {
            var lhs = new LiteralNode(Location.Empty, "10.0", QValueType.Integer);
            var rhs = new LiteralNode(Location.Empty, "5", QValueType.Integer);

            Assert.AreEqual(QValueType.Integer, StatementTypeEvaluator.GetStatementResultType(lhs, rhs));
        }
Example #3
0
 public QValueType GetQValueType()
 {
     return(StatementTypeEvaluator.GetStatementResultType(Left, Right));
 }