aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tests/fuzzer/testcase.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2022-04-29 10:48:09 +0200
committerRenaud G <renaud@rolisteam.org>2022-04-29 10:48:09 +0200
commit07c5f6ec23fcf9237a24e71adcfacabce677f818 (patch)
tree588e8c5f82b9163181fad3581f610e6f1d88cba4 /tests/fuzzer/testcase.cpp
parenta9153f1615a842cfb9e9bcda4d9071e202618569 (diff)
downloadOneRoll-07c5f6ec23fcf9237a24e71adcfacabce677f818.tar.gz
OneRoll-07c5f6ec23fcf9237a24e71adcfacabce677f818.zip
Change file organization.
Diffstat (limited to 'tests/fuzzer/testcase.cpp')
-rw-r--r--tests/fuzzer/testcase.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/tests/fuzzer/testcase.cpp b/tests/fuzzer/testcase.cpp
deleted file mode 100644
index 87d1867..0000000
--- a/tests/fuzzer/testcase.cpp
+++ /dev/null
@@ -1,37 +0,0 @@
-#include <QCoreApplication>
-#include <QDebug>
-#include <QFile>
-#include <diceparser.h>
-
-static DiceParser* parser= new DiceParser();
-
-void runCommand(const QString& cmd)
-{
- qDebug() << "cmd" << cmd;
- if(parser->parseLine(cmd))
- {
- parser->start();
- }
-}
-
-int main(int argc, char** argv)
-{
- // qDebug() << "first";
- QCoreApplication app(argc, argv);
-
- // qDebug() << "start";
- QFile file(app.arguments().at(1));
- // qDebug() << "file" << app.arguments().at(1);
- if(!file.open(QIODevice::ReadOnly))
- return 1;
-
- auto line= file.readLine();
- while(!line.isEmpty())
- {
- // qDebug() << line;
- runCommand(QString::fromUtf8(line));
- line= file.readLine();
- }
-
- return 0;
-}