From 7905926c413e843d9497948cb824059f2c017f6a Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Mon, 26 Aug 2013 03:04:23 +0000 Subject: Support sorting database search results by rank, and add a rank attribute to ATOM entries. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1517412 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/modules/atom/atom-test.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'sca-cpp/trunk/modules/atom/atom-test.cpp') diff --git a/sca-cpp/trunk/modules/atom/atom-test.cpp b/sca-cpp/trunk/modules/atom/atom-test.cpp index 056e9ea965..e2e07a8608 100644 --- a/sca-cpp/trunk/modules/atom/atom-test.cpp +++ b/sca-cpp/trunk/modules/atom/atom-test.cpp @@ -77,6 +77,17 @@ const string itemNoContentEntry("\n" "" "\n"); +const string itemEmptyTitleEntry("\n" + "" + "" + "cart-53d67a61-aa5e-4e5e-8401-39edeba8b83b" + "" + "jane" + "" + "Fri Jan 01 08:11:36 PDT 2012" + "" + "\n"); + const string incompleteEntry("\n" "item" "" @@ -154,6 +165,12 @@ const bool testEntry() { writeATOMEntry(writer, &os, a); assert(str(os) == itemNoContentEntry); } + { + const list a = content(readATOMEntry(mklist(itemEmptyTitleEntry))); + ostringstream os; + writeATOMEntry(writer, &os, a); + assert(str(os) == itemEmptyTitleEntry); + } { const list a = content(readATOMEntry(mklist(incompleteEntry))); ostringstream os; -- cgit v1.2.3