From 948be2ef2bf04e306fbb0e2c3e0a98f4151337a7 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 / --- tests/quotest.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') 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() -- cgit v1.2.3