more forgiving assert.eq

This commit is contained in:
Eliot Horowitz
2011-07-05 00:46:50 -04:00
parent 74cd733b1b
commit 91efa3fcd9
2 changed files with 6 additions and 6 deletions

View File

@@ -15,14 +15,14 @@ const StringData _jscode_raw_utils =
"if ( a == b )\n"
"return true;\n"
"\n"
"a = tojson(a);\n"
"b = tojson(b);\n"
"a = tojson(a,false,true);\n"
"b = tojson(b,false,true);\n"
"\n"
"if ( a == b )\n"
"return true;\n"
"\n"
"var clean = function( s ){\n"
"s = s.replace( /NumberInt\\((\\d+)\\)/ , \"$1\" );\n"
"s = s.replace( /NumberInt\\((\\-?\\d+)\\)/g , \"$1\" );\n"
"return s;\n"
"}\n"
"\n"