diff options
author | Sze Howe Koh <szehowe.koh@gmail.com> | 2014-03-03 10:47:49 +0800 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-04 15:59:05 +0100 |
commit | fe2ce05d23a52d27e50270d22eb9fff9ab091dd4 (patch) | |
tree | 1a4731344a29abd3b5cc4a5ee93420c68109494b /tests | |
parent | 10ad84d22350b19b1185ed2754eb3a2339504518 (diff) |
Remove duplicated tests
tst_QtJson::testValueSimple() tested bool and double values twice
Change-Id: Ie6e58aab729c6ee20cb53d3b85746a05f7571f5e
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/corelib/json/tst_qtjson.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/auto/corelib/json/tst_qtjson.cpp b/tests/auto/corelib/json/tst_qtjson.cpp index 6736a33405..589978e1a4 100644 --- a/tests/auto/corelib/json/tst_qtjson.cpp +++ b/tests/auto/corelib/json/tst_qtjson.cpp @@ -200,20 +200,6 @@ void tst_QtJson::testValueSimple() QCOMPARE(value.toBool(), false); QCOMPARE(value.toObject(), QJsonObject()); QCOMPARE(value.toArray(), QJsonArray()); - - value = true; - QCOMPARE(value.toDouble(), 0.); - QCOMPARE(value.toString(), QString()); - QCOMPARE(value.toBool(), true); - QCOMPARE(value.toObject(), QJsonObject()); - QCOMPARE(value.toArray(), QJsonArray()); - - value = 999.; - QCOMPARE(value.toDouble(), 999.); - QCOMPARE(value.toString(), QString()); - QCOMPARE(value.toBool(), false); - QCOMPARE(value.toObject(), QJsonObject()); - QCOMPARE(value.toArray(), QJsonArray()); } void tst_QtJson::testNumbers() |