the test suite is mostly green again
This commit is contained in:
parent
84806e6a61
commit
72f2a6e275
19 changed files with 46 additions and 67 deletions
|
|
@ -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)
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue