diff options
author | Eliot Horowitz <eliot@10gen.com> | 2012-01-31 22:26:17 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2012-01-31 22:26:34 -0500 |
commit | e45cb6180280494f97eb5a0a2be32de56bc1644a (patch) | |
tree | e06602ba556ade0855e6783edd693a93fc74c0ea /jstests | |
parent | 7cb8cf6c3459bfda29eeae840aee708ceea22ed5 (diff) | |
download | mongo-e45cb6180280494f97eb5a0a2be32de56bc1644a.tar.gz |
fix 32-bit agg test and Date_t
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/aggregation/articles.js | 2 | ||||
-rw-r--r-- | jstests/aggregation/testall.js | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/jstests/aggregation/articles.js b/jstests/aggregation/articles.js index 364b89cb653..595de4e935c 100644 --- a/jstests/aggregation/articles.js +++ b/jstests/aggregation/articles.js @@ -20,7 +20,7 @@ db.article.save( { db.article.save( {
title : "this is your title" ,
author : "dave" ,
- posted : new Date(4121381470000) ,
+ posted : new Date(1912392670000) ,
pageViews : 7 ,
tags : [ "fun" , "nasty" ] ,
comments : [
diff --git a/jstests/aggregation/testall.js b/jstests/aggregation/testall.js index 05da94ec7ff..45777ae5fa3 100644 --- a/jstests/aggregation/testall.js +++ b/jstests/aggregation/testall.js @@ -1103,10 +1103,10 @@ var p19result = [ "hour" : 4,
"dayOfYear" : 220,
"dayOfMonth" : 8,
- "dayOfWeek" : 1,
+ "dayOfWeek" : 5,
"month" : 8,
- "week" : 32,
- "year" : 2100
+ "week" : 31,
+ "year" : 2030
},
{
"_id" : ObjectId("4e14a3f1ffc569a332159c6b"),
@@ -1122,6 +1122,9 @@ var p19result = [ }
];
+printjson( p19.result );
+printjson( p19result );
+
assert(arrayEq(p19.result, p19result), 'p19 failed');
|