[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [messagelib] webengineviewer/src/checkphishingurl/autotests: Add more autotest
From: Montel Laurent <montel () kde ! org>
Date: 2016-12-07 21:06:25
Message-ID: E1cEjQ1-0007bB-Ge () code ! kde ! org
[Download RAW message or body]
Git commit 4eb5619cf5c985ba97b498ba2df88b0d865504d3 by Montel Laurent.
Committed on 07/12/2016 at 21:06.
Pushed by mlaurent into branch 'master'.
Add more autotest
M +12 -0 webengineviewer/src/checkphishingurl/autotests/riceencodingd=
ecodertest.cpp
https://commits.kde.org/messagelib/4eb5619cf5c985ba97b498ba2df88b0d865504d3
diff --git a/webengineviewer/src/checkphishingurl/autotests/riceencodingdec=
odertest.cpp b/webengineviewer/src/checkphishingurl/autotests/riceencodingd=
ecodertest.cpp
index 8b992824..3ce2b08c 100644
--- a/webengineviewer/src/checkphishingurl/autotests/riceencodingdecodertes=
t.cpp
+++ b/webengineviewer/src/checkphishingurl/autotests/riceencodingdecodertes=
t.cpp
@@ -47,6 +47,18 @@ void RiceEncodingDecoderTest::shouldDecodeRiceIndices_da=
ta()
result.clear();
result << 5 << 20 << 29;
QTest::newRow("test1") << QByteArray("5") << 2 << 2 << QByteArrayLiter=
al("\xf7\x2") << result;
+
+ result.clear();
+ QTest::newRow("failedempty") << QByteArray("3") << 5 << 1 << QByteArra=
y() << result;
+
+
+ result.clear();
+ //TODO fixme
+ //QTest::newRow("failednegativeentries") << QByteArray("3") << 5 << -1=
<< QByteArray() << result;
+
+ result.clear();
+ QTest::newRow("failednonpositive") << QByteArray("3") << 0 << 1 << QBy=
teArrayLiteral("a") << result;
+ QTest::newRow("failednonpositive1") << QByteArray("3") << -1 << 1 << Q=
ByteArrayLiteral("a") << result;
}
=
void RiceEncodingDecoderTest::shouldDecodeRiceIndices()
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic