made some tests green

This commit is contained in:
Araq
2014-03-27 19:43:17 +01:00
parent 3365b42bbe
commit 76ef752957
4 changed files with 5 additions and 19 deletions

View File

@@ -1,7 +1,7 @@
discard """
output: '''108
11 -1 1936
4.000000000000002-e001
4.0000000000000002e-001
true
truefalse'''
"""

View File

@@ -1,16 +0,0 @@
import mongo, db_mongo, oids, json
var conn = db_mongo.open()
var data = %{"a": %13, "b": %"my string value",
"inner": %{"i": %71} }
var id = insertID(conn, "test.test", data)
for v in find(conn, "test.test", "this.a == 13"):
print v
delete(conn, "test.test", id)
close(conn)

View File

@@ -1,5 +1,7 @@
discard """
outputsub: "101"
msg: "Warning: write to foreign heap"
line: 37
cmd: "nimrod cc --hints:on --threads:on $# $#"
"""
@@ -8,7 +10,7 @@ import os
var
thr: array [0..5, TThread[tuple[a, b: int]]]
proc doNothing() = nil
proc doNothing() = discard
type
PNode = ref TNode

View File

@@ -6,7 +6,7 @@ discard """
#bug #1009
type
TAggRgba8* = array[4, byte]
TAggRgba8* = array[4, Byte]
template R*(self: TAggRgba8): Byte = self[0]
template G*(self: TAggRgba8): Byte = self[1]