From c0228210c4b0a8e52744ea8c15f16bb75b6886c3 Mon Sep 17 00:00:00 2001 From: Kevin Ottens Date: Mon, 29 Jun 2009 15:29:52 +0000 Subject: [PATCH] Forgot to adjust the unit tests. svn path=/branches/work/~ervin/qtjolie/; revision=989150 --- private/qtjolie-branch/tests/testvalue.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/private/qtjolie-branch/tests/testvalue.cpp b/private/qtjolie-branch/tests/testvalue.cpp index e146917e7..e4a556790 100644 --- a/private/qtjolie-branch/tests/testvalue.cpp +++ b/private/qtjolie-branch/tests/testvalue.cpp @@ -85,7 +85,7 @@ private slots: QCOMPARE(v2.toByteArray(), QByteArray()); } - void shouldRespectByteArrayValues() + void shouldAutoConvertByteArrayValues() { Value v1("42"), v2; @@ -100,8 +100,8 @@ private slots: QCOMPARE(v2.toByteArray(), QByteArray("42")); QVERIFY(v2.isByteArray()); - QCOMPARE(v2.toInt(), 0); - QCOMPARE(v2.toDouble(), 0.0); + QCOMPARE(v2.toInt(), 42); + QCOMPARE(v2.toDouble(), 42.0); } void shouldHandleChildren()