diff options
author | Carl Schwan <carl@carlschwan.eu> | 2021-01-23 16:33:43 +0100 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2021-01-23 16:34:58 +0100 |
commit | 680e0f9deb3042db5cda43b81dbc7b1c153b8744 (patch) | |
tree | b8230ad30a7a875c43f09fcd7093e5efee6077a2 /quotest/quotest.cpp | |
parent | 3a23e40be271a54db84c39c1ba47956915bb23ec (diff) | |
download | libquotient-680e0f9deb3042db5cda43b81dbc7b1c153b8744.tar.gz libquotient-680e0f9deb3042db5cda43b81dbc7b1c153b8744.zip |
Add test
Diffstat (limited to 'quotest/quotest.cpp')
-rw-r--r-- | quotest/quotest.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/quotest/quotest.cpp b/quotest/quotest.cpp index 5098bc02..f693319f 100644 --- a/quotest/quotest.cpp +++ b/quotest/quotest.cpp @@ -101,6 +101,7 @@ private slots: TEST_DECL(setTopic) TEST_DECL(changeName) TEST_DECL(sendAndRedact) + TEST_DECL(showLocalUsername) TEST_DECL(addAndRemoveTag) TEST_DECL(markDirectChat) TEST_DECL(visitResources) @@ -508,6 +509,17 @@ TEST_IMPL(changeName) return false; } + +TEST_IMPL(showLocalUsername) +{ + auto* const localUser = connection()->user(); + if (localUser->name().contains("@")) { + // it is using the id fallback :( + FAIL_TEST(); + } + return false; +} + TEST_IMPL(sendAndRedact) { clog << "Sending a message to redact" << endl; |