#include "AstConverterTest.hpp"
#include <iostream>
#include <string>
#include <sstream>
#include "TestUtil.hpp"
#include "../AstCommon.hpp"
#include "../AstConverter.hpp"
#include "ctrump/ast/ast.h"
Go to the source code of this file.
Defines | |
#define | TEST(litStr, base, resType, resField, resVal) |
Functions | |
CPPUNIT_TEST_SUITE_REGISTRATION (AstConverterTest) |
#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)
CPPUNIT_TEST_SUITE_REGISTRATION | ( | AstConverterTest | ) |