aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndres Salomon <dilinger@queued.net>2021-03-27 23:40:54 -0400
committerAndres Salomon <dilinger@queued.net>2021-03-27 23:40:54 -0400
commit133dcfffc8668dfbaa0aed9dc1f46923064ca862 (patch)
tree1ddd3eea323ed7778286ea637688225c11bcf01d /tests
parent370099abaa8e8624901e481804d055226a501642 (diff)
parent52092d332dbc8b300a70cb47cd3b4edd98a37149 (diff)
downloadlibquotient-133dcfffc8668dfbaa0aed9dc1f46923064ca862.tar.gz
libquotient-133dcfffc8668dfbaa0aed9dc1f46923064ca862.zip
Update to upstream version '0.6.6'
Diffstat (limited to 'tests')
-rw-r--r--tests/quotest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/quotest.cpp b/tests/quotest.cpp
index bcc5a119..6ad5e8a8 100644
--- a/tests/quotest.cpp
+++ b/tests/quotest.cpp
@@ -726,12 +726,15 @@ TEST_IMPL(visitResources)
roomId, "matrix:roomid/" + roomId.mid(1),
"https://matrix.to/#/%21"/*`!`*/ + roomId.mid(1),
roomAlias, "matrix:room/" + roomAlias.mid(1),
+ "matrix:r/" + roomAlias.mid(1),
"https://matrix.to/#/" + roomAlias,
};
const QStringList userUris { userId, "matrix:user/" + userId.mid(1),
+ "matrix:u/" + userId.mid(1),
"https://matrix.to/#/" + userId };
const QStringList eventUris {
"matrix:room/" + roomAlias.mid(1) + "/event/" + eventId.mid(1),
+ "matrix:r/" + roomAlias.mid(1) + "/e/" + eventId.mid(1),
"https://matrix.to/#/" + roomId + '/' + eventId
};
// Check that reserved characters are correctly processed.
@@ -745,6 +748,7 @@ TEST_IMPL(visitResources)
static const QStringList joinByAliasUris {
Uri(joinRoomAlias.toUtf8(), {}, joinQuery.mid(1)).toDisplayString(),
"matrix:room/" + encodedRoomAliasNoSigil + joinQuery,
+ "matrix:r/" + encodedRoomAliasNoSigil + joinQuery,
"https://matrix.to/#/%23"/*`#`*/ + encodedRoomAliasNoSigil + joinQuery,
"https://matrix.to/#/%23" + joinRoomAlias.mid(1) /* unencoded */ + joinQuery
};