You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
376 B

2 years ago
#include "LinkedListTest.h"
2 years ago
#include <QTest>
#include "SortedLinkedList.h"
#include "Node.h"
2 years ago
LinkedListTest::LinkedListTest()
{
2 years ago
}
void LinkedListTest::test()
{
LinkedList linkList;
auto l = linkList.Initiate("D:/git commands/App-Log-Reader/test.usl");
SortedLinkedList t(l);
auto result = t.chainLenSorting(1, 2);
2 years ago
2 years ago
QCOMPARE(result.last()->chainLen, 2);
2 years ago
}