summaryrefslogtreecommitdiff
path: root/src/pugixpath.cpp
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-11-08 15:17:46 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-11-08 15:17:46 +0000
commit0cac815b6398d60171e992a4333ab16ad542aebc (patch)
tree303c706d29e7422b10df16ea6b97dc796b9cc022 /src/pugixpath.cpp
parentc5d97527366f9c39e84e3a4089ff74311b14c489 (diff)
tests: More coverage tests
git-svn-id: http://pugixml.googlecode.com/svn/trunk@225 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src/pugixpath.cpp')
-rw-r--r--src/pugixpath.cpp23
1 files changed, 3 insertions, 20 deletions
diff --git a/src/pugixpath.cpp b/src/pugixpath.cpp
index f2e051c..e6f55c9 100644
--- a/src/pugixpath.cpp
+++ b/src/pugixpath.cpp
@@ -1299,11 +1299,6 @@ namespace pugi
return Cdouble()(lhs->eval_number(c), rhs->eval_number(c));
else if (lhs->rettype() == ast_type_string || rhs->rettype() == ast_type_string)
return Cstring()(lhs->eval_string(c), rhs->eval_string(c));
- else
- {
- assert(!"Wrong types");
- return false;
- }
}
else if (lhs->rettype() == ast_type_node_set && rhs->rettype() == ast_type_node_set)
{
@@ -1349,11 +1344,6 @@ namespace pugi
return false;
}
- else
- {
- assert(!"Wrong types");
- return false;
- }
}
else if (lhs->rettype() == ast_type_node_set && rhs->rettype() != ast_type_node_set)
{
@@ -1385,17 +1375,10 @@ namespace pugi
return false;
}
- else
- {
- assert(!"Wrong types");
- return false;
- }
- }
- else
- {
- assert(!"Wrong types");
- return false;
}
+
+ assert(!"Wrong types");
+ return false;
}
};