ctrump/parser/unit-test/AstConverterTest.cpp File Reference

#include "AstConverterTest.hpp"
#include <iostream>
#include <string>
#include <sstream>
#include "TestUtil.hpp"
#include "../AstCommon.hpp"
#include "../AstConverter.hpp"
#include "ctrump/ast/ast.h"

Include dependency graph for AstConverterTest.cpp:

Go to the source code of this file.

Defines

#define TEST(litStr, base, resType, resField, resVal)

Functions

 CPPUNIT_TEST_SUITE_REGISTRATION (AstConverterTest)


Define Documentation

#define TEST ( litStr,
base,
resType,
resField,
resVal   ) 

Value:

do {                                                                \
        ctrump_expr e;                                                  \
        antlr::RefAST en = parseString(litStr, &CParser::primaryExpression); \
        AstConverter::convertIntegerConstant(RefNode(en), base, &e);    \
        CPPUNIT_ASSERT(e.code == resType);                              \
        CPPUNIT_ASSERT(e.u.resField.value == resVal);                   \
    } while (0)


Function Documentation

CPPUNIT_TEST_SUITE_REGISTRATION ( AstConverterTest   ) 


Generated on Tue Mar 31 20:19:25 2009 for ctrump by  doxygen 1.5.6