summaryrefslogtreecommitdiff
path: root/jstests/date1.js
blob: ca2e616f09e29f326f534db2d951195cdb1c632c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

t = db.date1;


function go( d , msg ){
    t.drop();
    t.save( { a : 1 , d : d } );
    assert.eq( d , t.findOne().d , msg )
}

go( new Date() , "A" )
go( new Date( 1 ) , "B")
go( new Date( 0 ) , "C (old spidermonkey lib fails this test)")