diff options
| author | Jonah BrĂ¼chert <jbb.prv@gmx.de> | 2019-10-19 17:23:08 +0200 |
|---|---|---|
| committer | LNJ <lnj@kaidan.im> | 2019-10-22 15:32:25 +0200 |
| commit | 876c924cde7b8fe129d0f3e1b76cf0a2de9fb856 (patch) | |
| tree | c0a8816bf3fbff9fe1c6efd229dad5897cbdf61b /tests/qxmppiq/tst_qxmppiq.cpp | |
| parent | 70dfa23900a3905285435a10fdaa97462a67016f (diff) | |
| download | qxmpp-876c924cde7b8fe129d0f3e1b76cf0a2de9fb856.tar.gz | |
Use raw literals, range based loops and auto
Diffstat (limited to 'tests/qxmppiq/tst_qxmppiq.cpp')
| -rw-r--r-- | tests/qxmppiq/tst_qxmppiq.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/qxmppiq/tst_qxmppiq.cpp b/tests/qxmppiq/tst_qxmppiq.cpp index fcf526e5..4f88e276 100644 --- a/tests/qxmppiq/tst_qxmppiq.cpp +++ b/tests/qxmppiq/tst_qxmppiq.cpp @@ -41,19 +41,19 @@ void tst_QXmppIq::testBasic_data() QTest::addColumn<int>("type"); QTest::newRow("get") - << QByteArray("<iq to=\"foo@example.com/QXmpp\" from=\"bar@example.com/QXmpp\" type=\"get\"/>") + << QByteArray(R"(<iq to="foo@example.com/QXmpp" from="bar@example.com/QXmpp" type="get"/>)") << int(QXmppIq::Get); QTest::newRow("set") - << QByteArray("<iq to=\"foo@example.com/QXmpp\" from=\"bar@example.com/QXmpp\" type=\"set\"/>") + << QByteArray(R"(<iq to="foo@example.com/QXmpp" from="bar@example.com/QXmpp" type="set"/>)") << int(QXmppIq::Set); QTest::newRow("result") - << QByteArray("<iq to=\"foo@example.com/QXmpp\" from=\"bar@example.com/QXmpp\" type=\"result\"/>") + << QByteArray(R"(<iq to="foo@example.com/QXmpp" from="bar@example.com/QXmpp" type="result"/>)") << int(QXmppIq::Result); QTest::newRow("error") - << QByteArray("<iq to=\"foo@example.com/QXmpp\" from=\"bar@example.com/QXmpp\" type=\"error\"/>") + << QByteArray(R"(<iq to="foo@example.com/QXmpp" from="bar@example.com/QXmpp" type="error"/>)") << int(QXmppIq::Error); } |
