summaryrefslogtreecommitdiff
path: root/dbtests
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2010-03-08 16:35:10 -0500
committerMathias Stearn <mathias@10gen.com>2010-03-08 16:39:23 -0500
commitddc9397431f5ece23bfe670752894aa0aae10885 (patch)
treef89e07feb7200c1bf1515460df428dfcd6a415e0 /dbtests
parent53235fdc3667ebd7785788749ca3ec564d6486c6 (diff)
downloadmongo-ddc9397431f5ece23bfe670752894aa0aae10885.tar.gz
Don't escape '/' in JSON strings SERVER-713
Diffstat (limited to 'dbtests')
-rw-r--r--dbtests/jsontests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbtests/jsontests.cpp b/dbtests/jsontests.cpp
index 68c6b5c4925..aa6b1a2c62b 100644
--- a/dbtests/jsontests.cpp
+++ b/dbtests/jsontests.cpp
@@ -47,7 +47,7 @@ namespace JsonTests {
void run() {
BSONObjBuilder b;
b.append( "a", "\" \\ / \b \f \n \r \t" );
- ASSERT_EQUALS( "{ \"a\" : \"\\\" \\\\ \\/ \\b \\f \\n \\r \\t\" }", b.done().jsonString( Strict ) );
+ ASSERT_EQUALS( "{ \"a\" : \"\\\" \\\\ / \\b \\f \\n \\r \\t\" }", b.done().jsonString( Strict ) );
}
};
@@ -304,7 +304,7 @@ namespace JsonTests {
BSONObjBuilder b;
b.appendRegex( "a", "/\"", "i" );
BSONObj built = b.done();
- ASSERT_EQUALS( "{ \"a\" : { \"$regex\" : \"\\/\\\"\", \"$options\" : \"i\" } }",
+ ASSERT_EQUALS( "{ \"a\" : { \"$regex\" : \"/\\\"\", \"$options\" : \"i\" } }",
built.jsonString( Strict ) );
ASSERT_EQUALS( "{ \"a\" : /\\/\\\"/i }", built.jsonString( TenGen ) );
ASSERT_EQUALS( "{ \"a\" : /\\/\\\"/i }", built.jsonString( JS ) );