Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Slight addition to date test. QA-42.

  • Loading branch information...
commit 25c2fbff89d19b86183032b12f9752985ad7a6d1 1 parent 0dd1795
@stbrody stbrody authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 jstests/date3.js
View
6 jstests/date3.js
@@ -7,6 +7,7 @@ d1 = new Date(-1000)
dz = new Date(0)
d2 = new Date(1000)
+t.save( {x: 3, d: dz} )
t.save( {x: 2, d: d2} )
t.save( {x: 1, d: d1} )
@@ -19,9 +20,10 @@ function test () {
assert.eq ( 1, list.size() )
assert.eq ( 2, list[0].x )
var list = t.find().sort( {d:1} )
- assert.eq ( 2, list.size() )
+ assert.eq ( 3, list.size() )
assert.eq ( 1, list[0].x )
- assert.eq ( 2, list[1].x )
+ assert.eq ( 3, list[1].x )
+ assert.eq ( 2, list[2].x )
}
test()
Please sign in to comment.
Something went wrong with that request. Please try again.