diff options
-rw-r--r-- | tests/converter/tconvert.nim | 34 | ||||
-rw-r--r-- | tests/init/tuninit1.nim | 2 | ||||
-rw-r--r-- | tests/objvariant/tcheckedfield1.nim | 2 | ||||
-rw-r--r-- | tests/range/tmatrix3.nim | 4 |
4 files changed, 8 insertions, 34 deletions
diff --git a/tests/converter/tconvert.nim b/tests/converter/tconvert.nim index a8ddcf119..a37140234 100644 --- a/tests/converter/tconvert.nim +++ b/tests/converter/tconvert.nim @@ -1,5 +1,3 @@ -import - Cairo converter FloatConversion64(x: int): float64 = return toFloat(x) converter FloatConversion32(x: int): float32 = return toFloat(x) @@ -7,34 +5,10 @@ converter FloatConversionPlain(x: int): float = return toFloat(x) const width = 500 const height = 500 -const outFile = "CairoTest.png" - -var surface = Cairo.ImageSurfaceCreate(CAIRO.FORMAT_RGB24, width, height) -var ç = Cairo.Create(surface) - -ç.SetSourceRGB(1, 1, 1) -ç.Paint() - -ç.SetLineWidth(10) -ç.SetLineCap(CAIRO.LINE_CAP_ROUND) - -const count = 12 -var winc = width / count -var hinc = width / count -for i in 1 .. count-1: - var amount = i / count - ç.SetSourceRGB(0, 1 - amount, amount) - ç.MoveTo(i * winc, hinc) - ç.LineTo(width - i * winc, height - hinc) - ç.Stroke() - - ç.SetSourceRGB(1 - amount, 0, amount) - ç.MoveTo(winc, i * hinc) - ç.LineTo(width - winc, height - i * hinc) - ç.Stroke() - -echo(surface.WriteToPNG(outFile)) -surface.Destroy() + +proc ImageSurfaceCreate(w, h: float) = discard + +ImageSurfaceCreate(width, height) type TFoo = object diff --git a/tests/init/tuninit1.nim b/tests/init/tuninit1.nim index 2a994b187..57443a7d3 100644 --- a/tests/init/tuninit1.nim +++ b/tests/init/tuninit1.nim @@ -1,5 +1,5 @@ discard """ - errormsg: "'y' might not have been initialized" + msg: "Warning: 'y' might not have been initialized [Uninit]" line:34 """ diff --git a/tests/objvariant/tcheckedfield1.nim b/tests/objvariant/tcheckedfield1.nim index 5ade3a13a..1963ceb8d 100644 --- a/tests/objvariant/tcheckedfield1.nim +++ b/tests/objvariant/tcheckedfield1.nim @@ -1,5 +1,5 @@ discard """ - errormsg: "cannot prove that field 'x.s' is accessible" + msg: "Warning: cannot prove that field 'x.s' is accessible [ProveField]" line:51 """ diff --git a/tests/range/tmatrix3.nim b/tests/range/tmatrix3.nim index 900404524..80d38d63d 100644 --- a/tests/range/tmatrix3.nim +++ b/tests/range/tmatrix3.nim @@ -1,6 +1,6 @@ discard """ - output: '''0.0000000000000000e+00 -0.0000000000000000e+00 + output: '''0.0 +0.0 0 0 0 |