Removed obsoleted test.

This commit is contained in:
Roberto Raggi
2009-10-27 11:05:35 +01:00
parent 3fd1e5b23f
commit 8ef85c6489

View File

@@ -8,24 +8,9 @@ class tst_Preprocessor: public QObject
Q_OBJECT
private Q_SLOTS:
void pp_with_no_client();
void unfinished_function_like_macro_call();
};
void tst_Preprocessor::pp_with_no_client()
{
Client *client = 0; // no client.
Environment env;
Preprocessor preprocess(client, &env);
QByteArray preprocessed = preprocess(QLatin1String("<stdin>"),
QByteArray("\n#define foo(a,b) a + b"
"\nfoo(1, 2)\n"));
QByteArray expected = "1 + 2";
QCOMPARE(preprocessed.trimmed(), expected);
}
void tst_Preprocessor::unfinished_function_like_macro_call()
{
Client *client = 0; // no client.
@@ -35,8 +20,8 @@ void tst_Preprocessor::unfinished_function_like_macro_call()
QByteArray preprocessed = preprocess(QLatin1String("<stdin>"),
QByteArray("\n#define foo(a,b) a + b"
"\nfoo(1, 2\n"));
QByteArray expected = "foo";
QCOMPARE(preprocessed.trimmed(), expected);
QCOMPARE(preprocessed.trimmed(), QByteArray("foo"));
}
QTEST_APPLESS_MAIN(tst_Preprocessor)