Skip to content

Commit

Permalink
Slight addition to date test. QA-42.
Browse files Browse the repository at this point in the history
  • Loading branch information
stbrody committed Aug 24, 2011
1 parent 0dd1795 commit 25c2fbf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jstests/date3.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ d1 = new Date(-1000)
dz = new Date(0) dz = new Date(0)
d2 = new Date(1000) d2 = new Date(1000)


t.save( {x: 3, d: dz} )
t.save( {x: 2, d: d2} ) t.save( {x: 2, d: d2} )
t.save( {x: 1, d: d1} ) t.save( {x: 1, d: d1} )


Expand All @@ -19,9 +20,10 @@ function test () {
assert.eq ( 1, list.size() ) assert.eq ( 1, list.size() )
assert.eq ( 2, list[0].x ) assert.eq ( 2, list[0].x )
var list = t.find().sort( {d:1} ) 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 ( 1, list[0].x )
assert.eq ( 2, list[1].x ) assert.eq ( 3, list[1].x )
assert.eq ( 2, list[2].x )
} }


test() test()
Expand Down

0 comments on commit 25c2fbf

Please sign in to comment.