aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/main.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/main.cpp b/tests/main.cpp
index bfece6e..5063c2d 100644
--- a/tests/main.cpp
+++ b/tests/main.cpp
@@ -141,5 +141,12 @@ int main() {
room_ids = matrix_extract_room_ids("@sneed:matrix.org");
assert_equals(room_ids.size(), 0);
+ Matrix matrix(false);
+ std::string formatted_body = matrix.body_to_formatted_body(nullptr, "hello world");
+ assert_equals(formatted_body, "hello world");
+
+ std::string qm_text = formatted_text_to_qm_text(&matrix, formatted_body.c_str(), formatted_body.size(), true);
+ assert_equals(qm_text, "hello world");
+
return 0;
}