mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 19:36:11 +00:00
38 lines
627 B
C++
38 lines
627 B
C++
|
|
#include <QtTest>
|
|
|
|
#include "AutoTest.h"
|
|
#include "CutterTest.h"
|
|
|
|
#include <Cutter.h>
|
|
|
|
class TestHexdumpWidget: public CutterTest
|
|
{
|
|
Q_OBJECT
|
|
private slots:
|
|
void initTestCase() override;
|
|
void toUpper();
|
|
void something();
|
|
};
|
|
|
|
void TestHexdumpWidget::initTestCase()
|
|
{
|
|
qDebug("TestHexdumpWidget::initTestCase()");
|
|
}
|
|
|
|
void TestHexdumpWidget::toUpper()
|
|
{
|
|
QString str = "Hello";
|
|
QCOMPARE(str.toUpper(), QString("HELLO"));
|
|
}
|
|
|
|
void TestHexdumpWidget::something()
|
|
{
|
|
QString a = Core()->cmd("fo");
|
|
qDebug() << "r2 returned:" << a;
|
|
}
|
|
|
|
DECLARE_TEST(TestHexdumpWidget)
|
|
#include "TestHexdumpWidget.moc"
|
|
|