diff options
Diffstat (limited to 'example/tests/tests.cpp')
| -rw-r--r-- | example/tests/tests.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/example/tests/tests.cpp b/example/tests/tests.cpp index b8ab9c63..8125e5c3 100644 --- a/example/tests/tests.cpp +++ b/example/tests/tests.cpp @@ -344,6 +344,12 @@ static void checkVariant(const QVariant &value, const QByteArray &xml) QCOMPARE(test, value); } +void TestXmlRpc::testBase64() +{ + checkVariant(QByteArray("\0\1\2\3", 4), + QByteArray("<value><base64>AAECAw==</base64></value>")); +} + void TestXmlRpc::testBool() { // FIXME : XML-RPC spec says we should write "0" or "1" @@ -365,6 +371,12 @@ void TestXmlRpc::testDouble() QByteArray("<value><double>-12.214</double></value>")); } +void TestXmlRpc::testInt() +{ + checkVariant(int(-12), + QByteArray("<value><i4>-12</i4></value>")); +} + void TestXmlRpc::testString() { checkVariant(QString("hello world"), |
