diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-09-28 06:17:43 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-12 08:22:44 -0700 |
commit | 34e68d34dd59ff3ebde8312b5645091ab1881216 (patch) | |
tree | d664eb178aa97e67904ef0c952985832cb8ceabf /tests | |
parent | 8777945d0090ec68fcee927f9632a3e066fc7446 (diff) | |
download | subsurface-34e68d34dd59ff3ebde8312b5645091ab1881216.tar.gz |
Tests: allow compilation with older Qt versions
Comparisons of QString results with C strings didn't always exist.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testhelper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/testhelper.cpp b/tests/testhelper.cpp index 83cd3176d..dc4e4d1bb 100644 --- a/tests/testhelper.cpp +++ b/tests/testhelper.cpp @@ -27,16 +27,16 @@ void TestHelper::parseNameAddress() { QString name, address; address = extractBluetoothNameAddress("01:a2:b3:c4:d5:06", name); - QCOMPARE(address, "01:a2:b3:c4:d5:06"); + QCOMPARE(address, QString("01:a2:b3:c4:d5:06")); QCOMPARE(name, QString()); address = extractBluetoothNameAddress("somename (01:a2:b3:c4:d5:06)", name); - QCOMPARE(address, "01:a2:b3:c4:d5:06"); + QCOMPARE(address, QString("01:a2:b3:c4:d5:06")); QCOMPARE(name, QString("somename")); address = extractBluetoothNameAddress("garbage", name); QCOMPARE(address, QString()); QCOMPARE(name, QString()); address = extractBluetoothNameAddress("somename (LE:{6e50ff5d-cdd3-4c43-a80a-1ed4c7d2d2a5})", name); - QCOMPARE(address, "LE:{6e50ff5d-cdd3-4c43-a80a-1ed4c7d2d2a5}"); + QCOMPARE(address, QString("LE:{6e50ff5d-cdd3-4c43-a80a-1ed4c7d2d2a5}")); QCOMPARE(name, QString("somename")); } |