From fe2ce05d23a52d27e50270d22eb9fff9ab091dd4 Mon Sep 17 00:00:00 2001 From: Sze Howe Koh Date: Mon, 3 Mar 2014 10:47:49 +0800 Subject: [PATCH] Remove duplicated tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit tst_QtJson::testValueSimple() tested bool and double values twice Change-Id: Ie6e58aab729c6ee20cb53d3b85746a05f7571f5e Reviewed-by: Jędrzej Nowacki --- tests/auto/corelib/json/tst_qtjson.cpp | 14 -------------- 1 file changed, 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()