preprocessor: insert space. '#if(' => '#if ('
This commit is contained in:
parent
04faae2882
commit
5acc6aca31
1685
src/preprocessor.cpp
1685
src/preprocessor.cpp
File diff suppressed because it is too large
Load Diff
|
@ -50,6 +50,7 @@ private:
|
|||
TEST_CASE(test3);
|
||||
TEST_CASE(test4);
|
||||
TEST_CASE(test5);
|
||||
TEST_CASE(test6);
|
||||
|
||||
// Handling include guards (don't create extra configuration for it)
|
||||
TEST_CASE(includeguard);
|
||||
|
@ -274,6 +275,18 @@ private:
|
|||
ASSERT_EQUALS(3, actual.size());
|
||||
}
|
||||
|
||||
void test6()
|
||||
{
|
||||
const char filedata[] = "#if(AAA)\n"
|
||||
"#if(AAA)\n";
|
||||
|
||||
std::istringstream istr(filedata);
|
||||
const std::string actual(Preprocessor::read(istr));
|
||||
|
||||
// Compare results..
|
||||
ASSERT_EQUALS("#if (AAA)\n#if (AAA)\n", actual);
|
||||
}
|
||||
|
||||
|
||||
void includeguard()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue