testpreprocessor: Removed test that doesn't work now that the preprocessor handles includes
This commit is contained in:
parent
0b2bd09b24
commit
a9851f44c1
|
@ -59,8 +59,6 @@ private:
|
|||
|
||||
TEST_CASE(elif);
|
||||
|
||||
TEST_CASE(include1);
|
||||
|
||||
TEST_CASE(if_cond1);
|
||||
|
||||
TEST_CASE(multiline1);
|
||||
|
@ -357,23 +355,6 @@ private:
|
|||
|
||||
|
||||
|
||||
void include1()
|
||||
{
|
||||
const char filedata[] = " # include \"abcd.h\" // abcd\n";
|
||||
|
||||
// Preprocess => actual result..
|
||||
std::istringstream istr(filedata);
|
||||
std::map<std::string, std::string> actual;
|
||||
Preprocessor preprocessor;
|
||||
preprocessor.preprocess(istr, actual);
|
||||
|
||||
// Compare results..
|
||||
ASSERT_EQUALS("#include \"abcd.h\"\n", actual[""]);
|
||||
ASSERT_EQUALS(1, actual.size());
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void if_cond1()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue