diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-09-11 07:15:01 +0200 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-09-11 07:15:01 +0200 |
commit | 948be2ef2bf04e306fbb0e2c3e0a98f4151337a7 (patch) | |
tree | 478def73f3d706c10186202c8a381b3a262a1e35 /tests | |
parent | 0e87640560343c15b0a218796509d2d94e1a5c77 (diff) | |
download | libquotient-948be2ef2bf04e306fbb0e2c3e0a98f4151337a7.tar.gz libquotient-948be2ef2bf04e306fbb0e2c3e0a98f4151337a7.zip |
Uri::toUrl(): fix incorrect matrix.to rep
The first character inside the fragment should be /
Diffstat (limited to 'tests')
-rw-r--r-- | tests/quotest.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/quotest.cpp b/tests/quotest.cpp index f14edcc0..faad5a15 100644 --- a/tests/quotest.cpp +++ b/tests/quotest.cpp @@ -652,6 +652,11 @@ TEST_IMPL(visitResources) Uri uri { uriString }; clog << "Checking " << uriString.toStdString() << " -> " << uri.toDisplayString().toStdString() << endl; + if (auto matrixToUrl = uri.toUrl(Uri::MatrixToUri).toDisplayString(); + !matrixToUrl.startsWith("https://matrix.to/#/")) { + clog << "Incorrect matrix.to representation:" + << matrixToUrl.toStdString() << endl; + } ud.visitResource(connection(), uriString); if (spy.count() != 1) { clog << "Wrong number of signal emissions (" << spy.count() |