Commits

Liam Staskawicz committed 7c3b84c

gotta clear the test DB first

Comments (0)

Files changed (1)

   {
     verifyEq(3f, db.eval("function (x) {return x;}", [3f]))
     
-    verifyNull(db.eval("function (x) {db.test_eval.save({y:x});}", [5]))
+    // make sure the test DB is dropped
+    verifyNull(db.eval("function () {db.test_eval.drop();}"))
+    verifyNull(db.eval("function (x) {db.test_eval.save({y:x});}", [5f]))
     verifyEq(5f, db["test_eval"].findOne()["y"])
     
     verifyEq(5f, db.eval("function (x, y) {return x + y;}", [2, 3]))