Commits

Dariusz Luksza  committed 2341b8b

Fix errors issues on Fantom 1.0.62

  • Participants
  • Parent commits a274f33

Comments (0)

Files changed (2)

     podName = "mongo"
     summary = "Interface to MongoDB (http://www.mongodb.com)"
     depends = ["sys 1.0", "inet 1.0", "concurrent 1.0"]
-    srcDirs = [`fan/`, `fan/bson/`, `fan/gridfs/`, `test/`]
+    srcDirs = [`test/`, `fan/`, `fan/gridfs/`, `fan/bson/`]
     docSrc  = true
   }
 }

File test/CollectionTest.fan

     c.save(["x":"a"])
     c.save(["x":"a"])
     c.save(["x":"b"])
-    initial := ["count": 0.0]
+    initial := ["count": 0.0f]
     f := "function (obj, prev) { prev.count += inc_value; }"
     
     g := c.group(["x"], initial, Code(f, ["inc_value":1]))
     verifyEq(3f, g[0]["count"])
     
-    g2 := c.group(["x"], initial, Code(f, ["inc_value":0.5]))
+    g2 := c.group(["x"], initial, Code(f, ["inc_value":0.5d]))
     verifyEq(1.5f, g2[0]["count"])
     
     // with finalize