summaryrefslogtreecommitdiff
path: root/tests/test_xpath_api.cpp
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2016-01-24 08:56:06 -0800
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2016-01-24 08:56:06 -0800
commite133764f33572c9bca205b0c19fc981df48e7e15 (patch)
treec389c399fd06571172a546aa65c761e234cd2310 /tests/test_xpath_api.cpp
parent7f91301946ce05e79fdd2ca3e79071f79fc93ba3 (diff)
parentf7aa65db8a13d32da0586c125f6b9b67460af374 (diff)
Merge pull request #81 from ogdf/whitespace-issues
Fix whitespace issues
Diffstat (limited to 'tests/test_xpath_api.cpp')
-rw-r--r--tests/test_xpath_api.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_xpath_api.cpp b/tests/test_xpath_api.cpp
index e53c25a..ef7d4b2 100644
--- a/tests/test_xpath_api.cpp
+++ b/tests/test_xpath_api.cpp
@@ -31,12 +31,12 @@ TEST_XML(xpath_api_select_node, "<node><head/><foo id='1'/><foo/><tail/></node>"
CHECK(n2.node().attribute(STR("id")).as_int() == 1);
xpath_node n3 = doc.select_node(STR("node/bar"));
-
+
CHECK(!n3);
xpath_node n4 = doc.select_node(STR("node/head/following-sibling::foo"));
xpath_node n5 = doc.select_node(STR("node/tail/preceding-sibling::foo"));
-
+
CHECK(n4.node().attribute(STR("id")).as_int() == 1);
CHECK(n5.node().attribute(STR("id")).as_int() == 1);
}
@@ -258,7 +258,7 @@ TEST(xpath_api_evaluate_string)
// test for just enough space
std::basic_string<char_t> s1 = base;
CHECK(q.evaluate_string(&s1[0], 11, xml_node()) == 11 && memcmp(&s1[0], STR("0123456789\0xxxxx"), 16 * sizeof(char_t)) == 0);
-
+
// test for just not enough space
std::basic_string<char_t> s2 = base;
CHECK(q.evaluate_string(&s2[0], 10, xml_node()) == 11 && memcmp(&s2[0], STR("012345678\0xxxxxx"), 16 * sizeof(char_t)) == 0);
@@ -292,7 +292,7 @@ TEST(xpath_api_return_type)
TEST(xpath_api_query_bool)
{
xpath_query q(STR("node"));
-
+
CHECK(q);
CHECK((!q) == false);
}
@@ -301,7 +301,7 @@ TEST(xpath_api_query_bool)
TEST(xpath_api_query_bool_fail)
{
xpath_query q(STR(""));
-
+
CHECK((q ? true : false) == false);
CHECK((!q) == true);
}