the test suite is mostly green again

This commit is contained in:
Zahary Karadjov 2012-03-16 05:33:21 +02:00
commit 72f2a6e275
19 changed files with 46 additions and 67 deletions

View file

@ -1,8 +1,6 @@
from sdl import PSurface
discard SDL.CreateRGBSurface(SDL.SWSURFACE, 23, 34,
discard SDL.CreateRGBSurface(SDL.SWSURFACE, 23, 34,
32, 0x00FF0000, 0x0000FF00, 0x000000FF, 0xff000000'i32)

View file

@ -1,6 +1,6 @@
# Test if the new table constructor syntax works:
template ignoreExpr(e: expr): stmt =
template ignoreExpr(e: expr): stmt {.immediate.} =
nil
# test first class '..' syntactical citizen:

View file

@ -26,13 +26,13 @@ echo(ha)
# Test identifier generation:
template prefix(name: expr): expr = `"hu" name`
template prefix(name: expr): expr {.immediate.} = `"hu" name`
var `hu "XYZ"` = "yay"
echo prefix(XYZ)
template typedef(name: expr, typ: typeDesc) =
template typedef(name: expr, typ: typeDesc) {.immediate.} =
type
`T name`* = typ
`P name`* = ref `T name`

View file

@ -1,7 +1,7 @@
template `:=`(name, val: expr): stmt =
template `:=`(name, val: expr): stmt {.immediate.} =
var name = val
ha := 1 * 4
hu := "ta-da" == "ta-da"
echo ha, hu