summaryrefslogtreecommitdiff
path: root/src/mongo/util/text.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2012-03-26 12:58:35 -0400
committerEliot Horowitz <eliot@10gen.com>2012-03-26 12:58:52 -0400
commitbd6d0c99195e324e14390205e2bc6ff88c01e365 (patch)
treef9306b37b7d3302b4dd6e5f628fcf9886a09cf15 /src/mongo/util/text.cpp
parenta56eef7bd9a5d390182ea64118e11420b052a380 (diff)
downloadmongo-bd6d0c99195e324e14390205e2bc6ff88c01e365.tar.gz
replace assert with verify SERVER-1259
Diffstat (limited to 'src/mongo/util/text.cpp')
-rw-r--r--src/mongo/util/text.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/util/text.cpp b/src/mongo/util/text.cpp
index a4091d684bb..3025d1da2b4 100644
--- a/src/mongo/util/text.cpp
+++ b/src/mongo/util/text.cpp
@@ -87,7 +87,7 @@ namespace mongo {
CP_UTF8, 0, wide.c_str(), static_cast<int>(wide.size()),
&buffer[0], static_cast<int>(buffer.size()), NULL, NULL);
if (len > 0) {
- assert(len == static_cast<int>(buffer.size()));
+ verify(len == static_cast<int>(buffer.size()));
return std::string(&buffer[0], buffer.size());
}
}
@@ -132,8 +132,8 @@ namespace mongo {
struct TextUnitTest : public UnitTest {
void run() {
- assert( parseLL("123") == 123 );
- assert( parseLL("-123000000000") == -123000000000LL );
+ verify( parseLL("123") == 123 );
+ verify( parseLL("-123000000000") == -123000000000LL );
}
} textUnitTest;