cutter/test/TestHexdumpWidget.cpp

38 lines
627 B
C++
Raw Normal View History

2018-04-13 16:02:28 +00:00
#include <QtTest>
#include "AutoTest.h"
#include "CutterTest.h"
2019-03-20 17:30:37 +00:00
#include <Cutter.h>
2018-04-13 16:02:28 +00:00
class TestHexdumpWidget: public CutterTest
{
Q_OBJECT
private slots:
void initTestCase() override;
void toUpper();
2019-03-20 17:30:37 +00:00
void something();
2018-04-13 16:02:28 +00:00
};
void TestHexdumpWidget::initTestCase()
{
qDebug("TestHexdumpWidget::initTestCase()");
}
void TestHexdumpWidget::toUpper()
{
QString str = "Hello";
QCOMPARE(str.toUpper(), QString("HELLO"));
}
2019-03-20 17:30:37 +00:00
void TestHexdumpWidget::something()
{
QString a = Core()->cmd("fo");
qDebug() << "r2 returned:" << a;
}
2018-04-13 16:02:28 +00:00
DECLARE_TEST(TestHexdumpWidget)
#include "TestHexdumpWidget.moc"