made some tests green

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

View file

@ -1,7 +1,7 @@
discard """ discard """
output: '''108 output: '''108
11 -1 1936 11 -1 1936
4.000000000000002-e001 4.0000000000000002e-001
true true
truefalse''' 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 """ discard """
outputsub: "101" outputsub: "101"
msg: "Warning: write to foreign heap"
line: 37
cmd: "nimrod cc --hints:on --threads:on $# $#" cmd: "nimrod cc --hints:on --threads:on $# $#"
""" """
@ -8,7 +10,7 @@ import os
var var
thr: array [0..5, TThread[tuple[a, b: int]]] thr: array [0..5, TThread[tuple[a, b: int]]]
proc doNothing() = nil proc doNothing() = discard
type type
PNode = ref TNode PNode = ref TNode

View file

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