[gnote] Check the created note content too



commit 930459f75044aa9bebf66858144acf4e030910dc
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Mon Apr 13 15:33:46 2020 +0300

    Check the created note content too

 src/test/unit/notemanagerutests.cpp | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/test/unit/notemanagerutests.cpp b/src/test/unit/notemanagerutests.cpp
index 7f60ca59..025b5588 100644
--- a/src/test/unit/notemanagerutests.cpp
+++ b/src/test/unit/notemanagerutests.cpp
@@ -52,7 +52,9 @@ SUITE(NoteManager)
     auto note2 = manager.create();
 
     CHECK_EQUAL("New Note 1", note1->get_title());
+    CHECK(note1->data().text().find("Describe your new note here.") != Glib::ustring::npos);
     CHECK_EQUAL("New Note 2", note2->get_title());
+    CHECK(note2->data().text().find("Describe your new note here.") != Glib::ustring::npos);
     CHECK_EQUAL(2, manager.get_notes().size());
   }
 
@@ -60,6 +62,7 @@ SUITE(NoteManager)
   {
     auto note = manager.create("test");
     CHECK_EQUAL("test", note->get_title());
+    CHECK(note->data().text().find("Describe your new note here.") != Glib::ustring::npos);
     CHECK_EQUAL(1, manager.get_notes().size());
   }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]