using namespace ELAM;
+void ElamTest::emptytest()
+{
+ QVariant v=Engine().evaluate("");
+ QCOMPARE(v.userType(),Exception::metaTypeId());
+}
+
void ElamTest::evaltest()
{
IntEngine ie;
{
Q_OBJECT
private slots:
+ void emptytest();
void evaltest();
void excepttest();
void counttest();
QCOMPARE(v2.toString(),QString("abc12"));
}
+void ElamTest::emptyList()
+{
+ IntEngine ie;
+ QList<Token>tl=ie.tokenize("");
+ QCOMPARE(tl.size(),0);
+ tl=ie.tokenize(" \t\n");
+ QCOMPARE(tl.size(),0);
+}
QTEST_MAIN(ElamTest)
\ No newline at end of file
void charClass();
void tokenizer();
void stringLiteral();
+ void emptyList();
};