From c5b162574d937408927d0ad89fb0c6ba96d49dd8 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Fri, 11 Sep 2020 07:15:01 +0200 Subject: Uri::toUrl(): fix incorrect matrix.to rep The first character inside the fragment should be / (cherry picked from commit 948be2ef2bf04e306fbb0e2c3e0a98f4151337a7) --- tests/quotest.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/quotest.cpp') diff --git a/tests/quotest.cpp b/tests/quotest.cpp index 3a32da69..3b7f2f48 100644 --- a/tests/quotest.cpp +++ b/tests/quotest.cpp @@ -649,6 +649,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() -- cgit v1.2.3