[gnote] Fix parse_tags test
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Fix parse_tags test
- Date: Sun, 7 Apr 2019 16:42:35 +0000 (UTC)
commit 8a8ac129a842eb748f7920cfd7a1e8058dd8a453
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Apr 7 17:34:41 2019 +0300
Fix parse_tags test
src/test/unit/noteutests.cpp | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/test/unit/noteutests.cpp b/src/test/unit/noteutests.cpp
index b61d0c11..f5ca228f 100644
--- a/src/test/unit/noteutests.cpp
+++ b/src/test/unit/noteutests.cpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2017 Aurimas Cernius
+ * Copyright (C) 2017,2019 Aurimas Cernius
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -19,8 +19,6 @@
-#include <list>
-
#include <libxml/tree.h>
#include <UnitTest++/UnitTest++.h>
@@ -36,8 +34,7 @@ SUITE(Note)
CHECK(doc);
if(doc) {
- std::list<Glib::ustring> tags;
- gnote::NoteBase::parse_tags(xmlDocGetRootElement(doc), tags);
+ std::vector<Glib::ustring> tags = gnote::NoteBase::parse_tags(xmlDocGetRootElement(doc));
CHECK(!tags.empty());
xmlFreeDoc(doc);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]